[Bug 1775307] Re: Unattended-upgrades crashes in adjusting candidates in 1.2ubuntu1 version
Balint Reczey
balint.reczey at canonical.com
Tue Jul 10 20:31:42 UTC 2018
Verified with unattended-upgrades 1.1ubuntu1.18.04.1.
Log:
root at bb-uu-fixed:~# dpkg -l unattended-upgrades | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==================-============-===========================================
ii unattended-upgrades 1.1ubuntu1.18.04.1 all automatic installation of security upgrades
root at bb-uu-fixed:~# apt update && unattended-upgrade --dry-run --verbose
Hit:1 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,a=bionic-security, o=UbuntuESM,a=bionic
Option --dry-run given, *not* performing real actions
Packages that will be upgraded: libgcrypt20 libssl1.0.0 libssl1.1 openssl
Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/libgcrypt20_1.8.1-4ubuntu1.1_amd64.deb
/usr/bin/dpkg --status-fd 9 --no-triggers --configure libgcrypt20:amd64
/usr/bin/dpkg --status-fd 9 --configure --pending
Preconfiguring packages ...
/usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/libssl1.0.0_1.0.2n-1ubuntu5.1_amd64.deb
/usr/bin/dpkg --status-fd 9 --configure --pending
Preconfiguring packages ...
/usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/libssl1.1_1.1.0g-2ubuntu4.1_amd64.deb
/usr/bin/dpkg --status-fd 9 --configure --pending
/usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/openssl_1.1.0g-2ubuntu4.1_amd64.deb
/usr/bin/dpkg --status-fd 9 --configure --pending
All upgrades installed
root at bb-uu-fixed:~# apt update && unattended-upgrade --dry-run --verbose --debug
Hit:1 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,a=bionic-security, o=UbuntuESM,a=bionic
adjusting candidate version: apache2=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-bin=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-data=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-dbg=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-dev=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-doc=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-ssl-dev=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-suexec-custom=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-suexec-pristine=2.4.29-1ubuntu4.1
adjusting candidate version: apache2-utils=2.4.29-1ubuntu4.1
adjusting candidate version: apport-gtk=2.20.9-0ubuntu7.1
adjusting candidate version: apport-kde=2.20.9-0ubuntu7.1
adjusting candidate version: apport-noui=2.20.9-0ubuntu7.1
adjusting candidate version: apport-retrace=2.20.9-0ubuntu7.1
adjusting candidate version: apport-valgrind=2.20.9-0ubuntu7.1
adjusting candidate version: apt=1.6.1
adjusting candidate version: apt-doc=1.6.1
adjusting candidate version: apt-transport-https=1.6.1
adjusting candidate version: apt-utils=1.6.1
adjusting candidate version: bluedevil=4:5.12.4-0ubuntu1
adjusting candidate version: boinc=7.9.3+dfsg-5
adjusting candidate version: boinc-client=7.9.3+dfsg-5
adjusting candidate version: boinc-client-nvidia-cuda=7.9.3+dfsg-5
adjusting candidate version: boinc-client-opencl=7.9.3+dfsg-5
adjusting candidate version: boinc-dev=7.9.3+dfsg-5
adjusting candidate version: boinc-manager=7.9.3+dfsg-5
adjusting candidate version: boinc-screensaver=7.9.3+dfsg-5
adjusting candidate version: boinc-virtualbox=7.9.3+dfsg-5
adjusting candidate version: bolt=0.2-0ubuntu1
adjusting candidate version: breeze=4:5.12.4-0ubuntu1
adjusting candidate version: breeze-cursor-theme=4:5.12.4-0ubuntu1
adjusting candidate version: breeze-dev=4:5.12.4-0ubuntu1
adjusting candidate version: budgie-desktop-common=0.9.9
adjusting candidate version: budgie-desktop-environment=0.9.9
adjusting candidate version: budgie-desktop-minimal=0.9.9
adjusting candidate version: ceph=12.2.4-0ubuntu1
adjusting candidate version: ceph-base=12.2.4-0ubuntu1
...
adjusting candidate version: vlc-plugin-base=3.0.1-3build1
left to upgrade {'openssl'}
applying set ['openssl']
/usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/openssl_1.1.0g-2ubuntu4.1_amd64.deb
/usr/bin/dpkg --status-fd 9 --configure --pending
...
adjusting candidate version: gnome-software-plugin-snap=3.28.1-0ubuntu4
adjusting candidate version: postgresql-plperl-10=10.3-1
adjusting candidate version: vlc-plugin-base=3.0.1-3build1
left to upgrade set()
All upgrades installed
InstCount=0 DelCount=0 BrokenCount=0
No crash was observed with the fixed version, as expected.
** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic
--
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 Bionic:
Fix Committed
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