Have you ever seen this message when updating your Debian-based system: "The following packages have been kept back"? Here's why you see it and how to solve it:
You just tried to run the following command:
1 | $ sudo apt-get update && sudo apt-get upgrade --show-upgraded -y
|
... and you get the message:
1 | The following packages have been kept back |
Running apt-get dist-upgrade
is dangerous for a stable environment. The wrong
source.list
setting and you end up with a broken Debian. You might get the
entire application upgraded to a version you don't want. For example, the kernel
upgrade is kept back. You just want to upgrade the kernel, not the entire
distribution.
A better way to handle a kept back package is:
sudo aptitude
+
on that listg
twicereturn
to continueQ
to quityes
The kept back packages are now installed.