Posts

Showing posts with the label APT

[SOLVED] The following packages have been kept back

Problem The message "The following packages have been kept back" appears when upgrading ( apt-get upgrade ), and the packages identified are not upgraded. Solution This happens when the dependencies of the identified packages changed and new packages need to be installed. We need to use dist-upgrade in order to install the new dependencies and upgrade the packages: sudo apt-get dist-upgrade References Some upgrades show packages being kept back

[HOW TO] Find which package includes a specific file

apt-file is a command that allows you to find which package includes a specific file. It can also be used to list all files included in a package without installing or downloading it. Install Open a terminal window and run: sudo apt-get install apt-file -y && sudo apt-file update The last part of the above command will update apt-file 's cache, so it might take a few minutes to complete. Usage The updated cache can be queried for a list of packages containing a file. The query may be constructed using only the file's name or the file's path: apt-file search filename apt-file search path/to/filename The contents of a package can be listed with: apt-file list packagename References apt-file | manpage