Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required gnupg package installation fails when sources purging is enabled #1205

Open
jay7x opened this issue Oct 30, 2024 · 0 comments
Open

Comments

@jay7x
Copy link

jay7x commented Oct 30, 2024

Describe the Bug

When purging is enabled, Apt module fails to install the gnupg package, because existing repos are purged already, but no new repos installed yet. Overall that causes every resource (package mainly) depending on the Apt class to fail this run (except repos). Next run Apt will install gnupg just fine, because repos are already there.

It seems, gnupg is not required anymore on any supported Debian flavor atm. So maybe easy fix is just to drop it. But I'm not 100% sure.

Expected Behavior

To be able to install repos and packages in a single run.

Steps to Reproduce

  1. Enable purging sources in Apt:
apt::purge:
  sources.list: true
  sources.list.d: true
  1. Configure a main Debian/Ubuntu repo with apt::sources:
apt::sources:
  debian:
    location: http://deb.debian.org/debian
    release: "%{facts.os.distro.codename}"
    repos: "main"
  1. Apply include apt.

Environment

  • Agent version: 8.8.1
  • Platform: Debian 11
  • puppetlabs/apt version: 9.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant