[Bug 1775307] Re: Unattended-upgrades crashes in adjusting candidates in 1.2ubuntu1 version
Brian Murray
brian at ubuntu.com
Mon Dec 3 19:19:06 UTC 2018
Hello Balint, or anyone else affected,
Accepted unattended-upgrades into xenial-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/unattended-upgrades/1.1ubuntu1.18.04.7~16.04.0 in a few hours, and then
in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-xenial to verification-done-xenial. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-failed-xenial. In either case, without details of
your testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: unattended-upgrades (Ubuntu Xenial)
Status: New => Fix Committed
** Tags removed: verification-done
** Tags added: verification-needed verification-needed-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1775307
Title:
Unattended-upgrades crashes in adjusting candidates in 1.2ubuntu1
version
Status in unattended-upgrades package in Ubuntu:
Fix Released
Status in unattended-upgrades source package in Xenial:
Fix Committed
Status in unattended-upgrades source package in Bionic:
Fix Released
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=0.7.5-1ubuntu15
adjusting candidate version: zfs-test=0.7.5-1ubuntu15
adjusting candidate version: zfs-zed=0.7.5-1ubuntu15
adjusting candidate version: zfsutils-linux=0.7.5-1ubuntu15
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1928, in <module>
sys.exit(main(options))
File "/usr/bin/unattended-upgrade", line 1554, in main
allowed_origins=allowed_origins)
File "/usr/bin/unattended-upgrade", line 122, in __init__
apt.Cache.__init__(self, rootdir=rootdir)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 130, in __init__
self.open(progress)
File "/usr/bin/unattended-upgrade", line 152, in open
self.adjust_candidates()
File "/usr/bin/unattended-upgrade", line 161, in adjust_candidates
for pkgname, candidate in self._get_candidates_to_adjust():
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1775307/+subscriptions
More information about the foundations-bugs
mailing list