Seems like lately when I go to update my Ubuntu 22.04 machines I constantly see that packages are held back for seemingly no reason. Here's the latest:
Earth:sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gnome-control-center gnome-control-center-data gnome-control-center-faces
libapache2-mod-php8.1 php8.1 php8.1-cgi php8.1-cli php8.1-common
php8.1-mysql php8.1-opcache php8.1-readline
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Earth:
If I apt upgrade and specify the packages the install works without issue. But why all these hold backs?
apt full-upgrade
as there are cases whereapt upgrade
cannot apply all upgrades due to its removal rules... Asman upgrade
will tell you, "full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole" ie. it can do whatapt upgrade
is not allowed to do - giving you the control over when removes occur...