Verified 1.1ubuntu1.18.04.11 on Bionic:

Old version:

root@bb-lp-1824804:~# 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.10 all          automatic installation 
of security upgrades
root@bb-lp-1824804:~# unattended-upgrade --verbose --debug
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
Using 
(^linux-image-[0-9]+\.[0-9\.]+-.*|^linux-headers-[0-9]+\.[0-9\.]+-.*|^linux-image-extra-[0-9]+\.[0-9\.]+-.*|^linux-modules-[0-9]+\.[0-9\.]+-.*|^linux-modules-extra-[0-9]+\.[0-9\.]+-.*|^linux-signed-image-[0-9]+\.[0-9\.]+-.*|^kfreebsd-image-[0-9]+\.[0-9\.]+-.*|^kfreebsd-headers-[0-9]+\.[0-9\.]+-.*|^gnumach-image-[0-9]+\.[0-9\.]+-.*|^.*-modules-[0-9]+\.[0-9\.]+-.*|^.*-kernel-[0-9]+\.[0-9\.]+-.*|^linux-backports-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-modules-.*-[0-9]+\.[0-9\.]+-.*|^linux-tools-[0-9]+\.[0-9\.]+-.*|^linux-cloud-tools-[0-9]+\.[0-9\.]+-.*)
 regexp to find kernel packages
Using 
(^linux-image-4\.18\.0\-18\-generic$|^linux-headers-4\.18\.0\-18\-generic$|^linux-image-extra-4\.18\.0\-18\-generic$|^linux-modules-4\.18\.0\-18\-generic$|^linux-modules-extra-4\.18\.0\-18\-generic$|^linux-signed-image-4\.18\.0\-18\-generic$|^kfreebsd-image-4\.18\.0\-18\-generic$|^kfreebsd-headers-4\.18\.0\-18\-generic$|^gnumach-image-4\.18\.0\-18\-generic$|^.*-modules-4\.18\.0\-18\-generic$|^.*-kernel-4\.18\.0\-18\-generic$|^linux-backports-modules-.*-4\.18\.0\-18\-generic$|^linux-modules-.*-4\.18\.0\-18\-generic$|^linux-tools-4\.18\.0\-18\-generic$|^linux-cloud-tools-4\.18\.0\-18\-generic$)
 regexp to find running kernel packages
Checking: libpam-systemd ([<Origin component:'main' archive:'bionic-updates' 
origin:'Ubuntu' label:'Ubuntu' site:'archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: libpam-systemd=237-3ubuntu10.19
falling back to marking libpam-systemd, then adjusting changes
package libpam-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
adjusting candidate version: 2to3=3.6.5-3
adjusting candidate version: amavisd-new=1:2.11.0-1ubuntu1
adjusting candidate version: amavisd-new-postfix=1:2.11.0-1ubuntu1
adjusting candidate version: amd64-microcode=3.20180524.1~ubuntu0.18.04.1
adjusting candidate version: aodh-api=6.0.0-0ubuntu1
adjusting candidate version: aodh-common=6.0.0-0ubuntu1
adjusting candidate version: aodh-doc=6.0.0-0ubuntu1
adjusting candidate version: aodh-evaluator=6.0.0-0ubuntu1
adjusting candidate version: aodh-expirer=6.0.0-0ubuntu1
adjusting candidate version: aodh-listener=6.0.0-0ubuntu1
adjusting candidate version: aodh-notifier=6.0.0-0ubuntu1
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: appstream=0.12.0-3
adjusting candidate version: appstream-doc=0.12.0-3
adjusting candidate version: apt-config-icons=0.12.0-3
adjusting candidate version: apt-config-icons-hidpi=0.12.0-3
...

Fixed version:
root@bb-lp-1824804:~# 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.11 all          automatic installation 
of security upgrades
root@bb-lp-1824804:~# unattended-upgrade --verbose --debug
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
...
Checking: libpam-systemd ([<Origin component:'main' archive:'bionic-updates' 
origin:'Ubuntu' label:'Ubuntu' site:'archive.ubuntu.com' isTrusted:True>])
adjusting candidate version: libpam-systemd=237-3ubuntu10.19
falling back to adjusting libpam-systemd's dependencies recursively
adjusting candidate version: libpam-systemd=237-3ubuntu10.19
adjusting candidate version: libpam-modules=1.1.8-3.6ubuntu2
adjusting candidate version: fdisk=2.31.1-0.4ubuntu3
adjusting candidate version: libidn11=1.33-2.1ubuntu1
adjusting candidate version: libncursesw5=6.1-1ubuntu1
...

** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unattended-upgrades in
Ubuntu.
https://bugs.launchpad.net/bugs/1824804

Title:
  Unattended upgrades falls back to adjust all upgradable packages in
  attempt to install held packages

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 Committed
Status in unattended-upgrades source package in Cosmic:
  Fix Committed
Status in unattended-upgrades source package in Disco:
  Fix Committed

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-systemd=237-3ubuntu10.19
  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-systemd=237-3ubuntu10.19
  falling back to adjusting libnss-systemd's dependencies recursively
  adjusting candidate version: libnss-systemd=237-3ubuntu10.19
  adjusting candidate version: libkmod2=24-1ubuntu3
  adjusting candidate version: mount=2.31.1-0.4ubuntu3
  adjusting candidate version: libmount1=2.31.1-0.4ubuntu3
  ...

  [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://bugs.launchpad.net/ubuntu/+source
  /unattended-upgrades/+bug/1396787/comments/21

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1824804/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to