Unattended upgrades falls back to adjust all upgradable packages in attempt to install held packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* The fix for LP: #1821101 allowed installing packages for which APT's resolver could not find solution for without adjusting other packages, but also tries to adjust many packages to install packages which are held back.
[Test Case]
* Set up a system where systemd (or a package that can't be upgraded without also upgrading other packages) need to be upgraded to the version in -security.
* Mark systemd on hold
apt-mark hold systemd
* Observe u-u falling back to adjusting all upgradable packages in unfixed versions and adjusting only a few in fixed versions:
# unattended-upgrade --verbose --debug
...
adjusting candidate version: libnss-
falling back to marking libnss-systemd, then adjusting changes
package libnss-systemd upgradable but fails to be marked for upgrade (E:Unable to correct problems, you have held broken packages.)
falling back to adjusting all packages
adjusting candidate version: 2ping=4.1-1
...
Fixed:
...
adjusting candidate version: libnss-
falling back to adjusting libnss-systemd's dependencies recursively
adjusting candidate version: libnss-
adjusting candidate version: libkmod2=
adjusting candidate version: mount=2.
adjusting candidate version: libmount1=
...
[Regression Potential]
* The less extensive fallback may not find solutions for installing packages with special relationships that the full fallback could have found, but I don't know about such special cases in the archive and the autopkgtest cover a fair set of popular packages. Keeping back those packages seems to be better than spending a lot of CPU time on finding a few solutions - which still was not enough to find _all_ solutions.
[Other Info]
Originally reported at: https:/
tags: | added: regression-update |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.