[Bug 2079842] Re: mantic -> noble lxd VM: upgrade removes Recommended packages

Julian Andres Klode 2079842 at bugs.launchpad.net
Fri Sep 6 15:19:03 UTC 2024


This must be a silly bug in how we initialize the depcache in apt, as
when reinstalling fwupd, marking it automatic, and then calling
autoremove, the autoremove does nothing:

root at mantic-to-noble-proposed:~# apt install fwupd
[...]
root at mantic-to-noble-proposed:~# apt-mark auto fwupd
fwupd set to automatically installed.
root at mantic-to-noble-proposed:~# apt-get autoremove -s
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2079842

Title:
  mantic -> noble lxd VM: upgrade removes Recommended packages

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  After upgrading a mantic lxd VM to noble, bolt and fwupd are missing:

  They were considered unused dependencies during the upgrade:

  2024-09-06 14:05:46,066 DEBUG Unused dependencies: libcbor0.8 libicu72
  libqmi-glib5 libvolume-key1 libappstream4 libprotobuf-c1 libsmbios-c2
  libmbim-utils python3-keyring perl-modules-5.36 libbytesize-common
  libnss3 libpython3.11 libjcat1 libpython3.11-minimal tpm-udev
  libpython3.11-stdlib libgcab-1.0-0 libnss-nisplus fwupd-signed
  python3-jeepney libaio1 usb-modeswitch libblockdev-crypto3 libnspr4
  libqrtr-glib0 usb-modeswitch-data libqmi-proxy libmbim-glib4
  libbytesize1 libunistring2 tzdata-icu python3-jaraco.classes
  libatasmart4 libblockdev3 irqbalance libtcl8.6 libtss2-mu0 udisks2
  libarchive13t64 libmbim-proxy libudisks2-0 libblockdev-part3
  python3.11 libnetplan0 gcc-13-base libqmi-utils libblockdev-nvme3
  libblockdev-fs3 libnss-nis libgusb2 ubuntu-advantage-tools libnsl2
  libjq1 libflashrom1 libnvme1t64 libperl5.36 jq libblockdev-loop3
  libftdi1-2 libblockdev-utils3 libmm-glib0 modemmanager tcl bolt
  python3.11-minimal libfwupd2 libblockdev-mdraid3 libonig5
  python3-secretstorage tcl8.6 libjson-glib-1.0-0 libblockdev-swap3
  libgpgme11t64 libjson-glib-1.0-common

  But clearly they are not:

  root at mantic-to-noble-proposed:~# aptitude why bolt
  i   ubuntu-server Recommends fwupd
  c   fwupd         Recommends bolt

  This is awkward because the unused dependencies are just the list of
  packages apt considers autoremovable, but with installed Reverse-
  Recommends, neither of them should be.

  
  To reproduce, run

  # lxc launch ubuntu:mantic mantic-to-noble-proposed
  # lxc exec mantic-to-noble-proposed apt-mark hold lxd-agent-loader # lxd bug
  # lxc exec mantic-to-noble-proposed do-release-upgrade -p

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2079842/+subscriptions




More information about the foundations-bugs mailing list