Monday, March 30, 2015

The Following Packages Have Been Kept Back

Oh, Linux. You are fun sometimes.

While upgrading some packages with apt (sudo apt-get update && sudo apt-get upgrade)I was recently met with a response of "The following packages have been kept back:", followed by a list of packages. 

This can happen when some packages have dependencies that must be met by installing other packages. This can be solved with:

sudo apt-get dist-upgrade

This can make sweeping system changes, however, installing new packages and removing some it thinks you no longer need. If you have custom source lists or a "stable" production system, you really need a backup in case something goes sideways in the upgrade process.

Alternatively you can use:

sudo apt-get install <held back packages>

...to individually fix items with less risk to the system going <BLOOP>. 

More information can be found on Stack Exchange's AskUbuntu site.

No comments:

Post a Comment