How to find why apt upgrade wants to remove a lot other packages
by TheJack from LinuxQuestions.org on (#6D61N)
OS: Ubuntu MATE 23.04 Lunar
TLDR: This is more of a why question than solving an issue question. Is there a way to establish a chain like package-a depends on package-b that depends on package-c and so on?
Synaptic GUI must be using some commands in the background to figuring this out, right?
Q: It's been roughly 3 months since system upgrade from Ubuntu MATE Kinetic 22.10 to Lunar 23.04 but `dhcpcd-base` upgrade wants to remove same 20 packages even as of now. For now I have applied `sudo apt-mark hold dhcpcd-base` to prevent accidental upgrade (and still the system is working just fine).
Code:dhcpcd-base
Installed version: 9.4.1-4
Latest available version: 9.4.1-19
Code:List of 20 packages:
gnome-network-displays
guestfish
guestfs-tools
guestmount
isc-dhcp-client
libguestfs-hfsplus
libguestfs-perl
libguestfs-reiserfs
libguestfs-tools
libguestfs-xfs
libguestfs0
network-manager
network-manager-gnome
network-manager-openvpn
network-manager-openvpn-gnome
network-manager-pptp
network-manager-pptp-gnome
network-manager-strongswan
ubuntu-minimal
virt-p2vI just like to know why? Result for `apt depends` and `apt-rdepneds` does not list any of the packages `apt upgrade` wants to remove.
Code:$ apt depends dhcpcd-base
dhcpcd-base
Depends: adduser
Depends: libc6 (>= 2.34)
Depends: libudev1 (>= 183)
Conflicts: <dhcp-client>
isc-dhcp-client
Breaks: dhcpcd5 (<< 9.4.1-2)
Recommends: wpasupplicant
Replaces: <dhcp-client>
dhcpcd-base
isc-dhcp-client
Replaces: dhcpcd5 (<< 9.4.1-2)
$
$ apt rdepends dhcpcd-base
dhcpcd-base
Reverse Depends:
Depends: dhcpcd
$Is there any `apt` command to find why `apt upgrade` wants to remove whole bunch of packages?
Many thanks in advance.
TLDR: This is more of a why question than solving an issue question. Is there a way to establish a chain like package-a depends on package-b that depends on package-c and so on?
Synaptic GUI must be using some commands in the background to figuring this out, right?
Q: It's been roughly 3 months since system upgrade from Ubuntu MATE Kinetic 22.10 to Lunar 23.04 but `dhcpcd-base` upgrade wants to remove same 20 packages even as of now. For now I have applied `sudo apt-mark hold dhcpcd-base` to prevent accidental upgrade (and still the system is working just fine).
Code:dhcpcd-base
Installed version: 9.4.1-4
Latest available version: 9.4.1-19
Code:List of 20 packages:
gnome-network-displays
guestfish
guestfs-tools
guestmount
isc-dhcp-client
libguestfs-hfsplus
libguestfs-perl
libguestfs-reiserfs
libguestfs-tools
libguestfs-xfs
libguestfs0
network-manager
network-manager-gnome
network-manager-openvpn
network-manager-openvpn-gnome
network-manager-pptp
network-manager-pptp-gnome
network-manager-strongswan
ubuntu-minimal
virt-p2vI just like to know why? Result for `apt depends` and `apt-rdepneds` does not list any of the packages `apt upgrade` wants to remove.
Code:$ apt depends dhcpcd-base
dhcpcd-base
Depends: adduser
Depends: libc6 (>= 2.34)
Depends: libudev1 (>= 183)
Conflicts: <dhcp-client>
isc-dhcp-client
Breaks: dhcpcd5 (<< 9.4.1-2)
Recommends: wpasupplicant
Replaces: <dhcp-client>
dhcpcd-base
isc-dhcp-client
Replaces: dhcpcd5 (<< 9.4.1-2)
$
$ apt rdepends dhcpcd-base
dhcpcd-base
Reverse Depends:
Depends: dhcpcd
$Is there any `apt` command to find why `apt upgrade` wants to remove whole bunch of packages?
Many thanks in advance.