Today after I upgraded an Ubuntu vm from “20.04” to “22.04”, I got the following error when running “apt-get dist-upgrade” in the vm:
The following packages have been kept back:
To fix this issue, as told in the post above, run the following command to install the package explicitly:
sudo apt-get install <list of packages kept back>
According to an article on “debian-administration.org“:
If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade then that will be listed as “kept-back”.