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

Feature Request: ignore package #363

Open
sdwru opened this issue May 27, 2024 · 0 comments
Open

Feature Request: ignore package #363

sdwru opened this issue May 27, 2024 · 0 comments

Comments

@sdwru
Copy link

sdwru commented May 27, 2024

I am using a repository that has been configured with a high apt Pin-Priority such that any package it contains will be installed first, even if a newer version number package is available in another repository. When this high Pin-Priority repo has a lower version number of a package installed than what is available in another repository, unattended-upgrades creates the following erroneous error.

1 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log

There is nothing indicating a problem in that above file, which is a secondary problem with this error. Rather, unattended-upgrades creates a /var/lib/unattended-upgrades/kept-back file listing the problem package. That package is not listed as being kept back when I do apt upgrade or apt --with-new-pkgs upgrade.

Adding that package to the /etc/apt/apt.conf.d/50unattended-upgrades file in the blacklist section does not suppress the erroneous error. I believe a new "ignore" section would be required so that I can add these packages for these situations where they incorrectly generate an erroneous error so that this error can be suppressed.

An even better solution would be for unattended-upgrades to be intelligent enough to understand that it should ignore the newer version because of the repo with the high Pin-Priority taking precedent.

@sdwru sdwru changed the title Feature Request: ingnore package Feature Request: ignore package May 27, 2024
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