I have a pretty standard "but it is not going to be installed" error on Ubuntu 16.04.01. For example:
sudo apt-get install libpq-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpq-dev : Depends: krb5-multidev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So let's go ahead and install that ourselves:
sudo apt-get install libpq-dev krb5-multidev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
krb5-multidev : Depends: libkrb5-3 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libk5crypto3 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libgssapi-krb5-2 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Let's continue:
sudo apt-get install libpq-dev krb5-multidev libkrb5-3 libk5crypto3 libgssapi-krb5-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libk5crypto3 is already the newest version (1.13.2+dfsg-5ubuntu2).
libk5crypto3 set to manually installed.
libgssapi-krb5-2 is already the newest version (1.13.2+dfsg-5ubuntu2).
libgssapi-krb5-2 set to manually installed.
libkrb5-3 is already the newest version (1.13.2+dfsg-5ubuntu2).
libkrb5-3 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
krb5-multidev : Depends: libkrb5-3 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libk5crypto3 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
Depends: libgssapi-krb5-2 (= 1.13.2+dfsg-5) but 1.13.2+dfsg-5ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
and you can continue time and again until you get bored and stop.
/etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
And I have tried to update my sources.list
with software-properties
and literally tried everything here to resolve it to no luck.
sudo apt-get -f install
should have fixed the broken packages, which there already seem to be none.aptitude
installed? it is often better at resolving, and will show the dependency tree, broken packages, holds etc