Public bug reported:
This bug is the spin-off of the bug:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/2148469
Ubuntu Release: 26.04
APT might drop Recommends dependencies if there are some phased updates.
This APT behavior can be reproduced for ANY package, it is not tight to
any class of Ubuntu package. However, we observed it by installing virt-
manager when systemd package is phased out.
When we install virt-manager, APT does not install libvirt-daemon-system
as Recommends. The expected behavior is that recommended packages are
installed by default.
This behavior happens due to systemd packages are phased out.
On a typical Ubuntu Resolute installation:
systemd-container is not installed
systemd-shared is installed
systemd-container Depends on systemd-shared (at the same version).
root@resolute:~# apt policy systemd-container
systemd-container:
Installed: (none)
Candidate: 259.5-0ubuntu3.3
Version table:
259.5-0ubuntu3.3 500 (phased 30%)
500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64
Packages
100 http://archive.ubuntu.com/ubuntu resolute-proposed/main amd64
Packages
259.5-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
root@resolute:~# apt policy libsystemd-shared
libsystemd-shared:
Installed: 259.5-0ubuntu3
Candidate: 259.5-0ubuntu3.3
Version table:
259.5-0ubuntu3.3 500
500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64
Packages
500 http://security.ubuntu.com/ubuntu resolute-security/main amd64
Packages
*** 259.5-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
100 /var/lib/dpkg/status
virt-manager dep chain:
----
virt-manager
--(Recommends)--> libvirt-daemon-system
--(Depends)--> libvirt-daemon-driver-qemu
--(Depends)--> systemd-container
When APT evaluates the installation of libvirt-daemon-system, it
considers that installing systemd-container at the update version
259.5-0ubuntu3.3 will pull in other systemd updates (libsystemd-shared,
libpam-systemd, ...) and break the phased out policy. APT decides to
drop libvirt-daemon-system as it is not a hard requirement (as
Recommends).
This is purely my guess of APT reasoning so don't take it for granted.
IMPORTANT BITS:
- if systemd-container is installed (at any version: 259.5-0ubuntu3 or
259.5-0ubuntu3.3), this will not cause APT to drop libvirt-daemon-
system, probably the required effort estimated by APT is not high enough
to decide for a drop.
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163238
Title:
apt drop Recommends dependencies if some updates are phased out
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2163238/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs