Blacklisted packages are included in the "upgradable origin", while they should not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades |
Fix Released
|
Unknown
|
|||
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Balint Reczey |
Bug Description
[Impact]
* Reports from u-u incorrectly list packages from non-upgradable origins as "Packages with upgradable origin but kept back"
* Listing the packages incorrectly is a result of is_pkgname_
* The fix is removing the side effect of is_pkgname_
[Test Case]
* There is a build-time test in test/test_
* To reproduce the original problem set up a system where all security updates are installed but ebtables (from bionic-updates) is not updated:
$ sudo unattended-upgrade --verbose
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,
No packages found that can be upgraded unattended and no pending auto-removals
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
apt apt-utils ebtables initramfs-tools initramfs-tools-bin initramfs-
liblxc-common liblxc1 libpython3-stdlib lxcfs lxd lxd-client netplan.io networkd-dispatcher nplan
python-apt-common python3 python3-apt python3-minimal python3-
unattended-
27 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.1 MB of archives.
After this operation, 1454 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
* blacklist ebtables, set up emails from u-u, then run u-u again:
$ sudo echo 'Unattended-
$ sudo echo 'Unattended-
$ sudo unattended-upgrade --verbose
Initial blacklisted packages: ebtables
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,
Packages that will be upgraded:
* Observe ebtables listed as being kept back and having upgradable origin with buggy u-u:
$ sudo cat /var/mail/mail
...
Packages with upgradable origin but kept back:
ebtables=20
...
* Upgrade u-u to a fixed version and run it, observing ebtables to be not listed as having upgradable origin
[Regression Potential]
* Regressions may make packages incorrectly missing from u-u's report, but the autopkgtests also cover that to some extent.
[Other Info]
* Original report: https:/
Changed in unattended-upgrades: | |
status: | Unknown → Fix Released |
description: | updated |
tags: |
added: verification-failed verification-failed-bionic removed: verification-needed verification-needed-bionic |
Changed in unattended-upgrades (Ubuntu Bionic): | |
status: | Fix Committed → In Progress |
assignee: | nobody → Balint Reczey (rbalint) |
description: | updated |
Changed in unattended-upgrades (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in unattended-upgrades (Ubuntu Xenial): | |
status: | Fix Committed → In Progress |
tags: | added: id-5c5c4493f028f40f2e8867c3 |
Looks like fixed in 1.4.