Unattended-upgrades crashes in adjusting candidates in 1.2ubuntu1 version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades fails to install updates when adjusting candidates is needed.
[Test Case]
Note that only 1.2ubuntu1 is affected. Earlier releases either did not crash or did not adjust candidates due to LP: #1775292. To reproduce the crash Cosmic's u-u 1.2ubuntu1 needs to be installed.
* Run sudo apt update && sudo unattended-upgrade --dry-run --verbose --debug
* Observe no line with "adjusting candidate version: " or a crash with buggy u-u versions
...
adjusting candidate version: zfs-initramfs=
adjusting candidate version: zfs-test=
adjusting candidate version: zfs-zed=
adjusting candidate version: zfsutils-
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
allowed_
File "/usr/bin/
apt.
File "/usr/lib/
self.
File "/usr/bin/
self.
File "/usr/bin/
for pkgname, candidate in self._get_
ValueError: too many values to unpack (expected 2) * Install fixed u-u version
* Run sudo unattended-upgrade --dry-run --verbose --debug
* Observe lines "adjusting candidate version: " and no crash
[Regression Potential]
* Unattended-upgrade may crash when adjusting candidates preventing upgrades to be installed
description: | updated |
tags: |
added: verification-don verification-done-xenial removed: verification-needed verification-needed-xenial |
tags: |
added: verification-done removed: verification-don |
This bug was fixed in the package unattended-upgrades - 1.3ubuntu3
---------------
unattended-upgrades (1.3ubuntu3) cosmic; urgency=medium
* Stop rewriting test apt.conf in test_untrusted.py. Upgrade: :OnlyOnACPower "false" accidentally
This fixes overwriting Unattended-
and breaking the build.
-- Balint Reczey <email address hidden> Tue, 19 Jun 2018 21:24:40 +0200