apticron exits with error when upgradeable packages are marked on hold

Bug #1628429 reported by Jörg Hohwieler
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apticron (Ubuntu)

Bug Description

apticron 1.1.58ubuntu1 on Ubuntu 16.04.1

To reproduce this issue you have to mark an upgradeable package on hold.
tomcat8 8.0.32-1ubuntu1.1 (installed)
tomcat8 8.0.32-1ubuntu1.2 (upgradeable)

- mark package on hold:
$ sudo apt-mark hold tomcat8

- run apticron
$ sudo apticron
E: Held packages were changed and -y was used without --allow-change-held-packages.

I could fix this issue by adding parameter "--allow-change-held-packages" - see attached patch.

Revision history for this message
Jörg Hohwieler (jhohwieler) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "apticron_held_packages_fix.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
ne (nemobobu) wrote :

This is rather dangerous. If you mark a package on hold, you usually *don't* want it to be upgraded, and you usually have serious reasons to do so. If you now set allow-change-held-packages, it gets upgraded by force. Under normal circumstance, you'd remove the hold to get the package upgraded, or you stop automatic upgrades, or you live with the given warning until you can resolve the issue.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers