Packages Have Been Kept Back
What do you do when you get this message “the following packages are being kept back.” And what exactly does it mean?
When performing updates in Ubuntu, you typically run these two commands from the command line.
<pre lang="bash">
$ sudo apt-get update
$ sudo apt-get upgrade
If there are updates, it will sometimes ask you to type “Y” or “yes.”
Sometimes you get this message.
<pre lang="bash">
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-server linux-image-server linux-server
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
This means that these packages were not installed or kept back because they have additional packages that are introduced, and the upgrades depend on them.
You can fix this by running:
<pre lang="bash">
$ sudo apt-get dist-upgrade
Or you can individually install the packages you want instead of globally.
<pre lang="bash">
$ sudo apt-get install package-name