I try sudo apt-get install libpq-dev
and I got this error
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: libssl-dev but it is not going to be installed
Depends: krb5-multidev but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I also run this command apt-cache policy libpq-dev libssl-dev krb5-multidev comerr-dev
and this is the result
libpq-dev:
Installed: (none)
Candidate: 9.3.4-1
Version table:
9.3.4-1 0
500 http://sd.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libssl-dev:
Installed: (none)
Candidate: 1.0.1f-1ubuntu2
Version table:
1.0.1f-1ubuntu2 0
500 http://sd.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
krb5-multidev:
Installed: (none)
Candidate: 1.12+dfsg-2ubuntu4
Version table:
1.12+dfsg-2ubuntu4 0
500 http://sd.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
comerr-dev:
Installed: (none)
Candidate: 2.1-1.42.9-3ubuntu1
Version table:
2.1-1.42.9-3ubuntu1 0
500 http://sd.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
output of sudo apt-get install libssl-dev krb5-multidev comerr-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:
comerr-dev : Depends: libcomerr2 (= 1.42.9-3ubuntu1) but 1.42.9-3ubuntu1.2 is to be installed
krb5-multidev : Depends: libkrb5-3 (= 1.12+dfsg-2ubuntu4) but 1.12+dfsg-2ubuntu5.1 is to be installed
Depends: libk5crypto3 (= 1.12+dfsg-2ubuntu4) but 1.12+dfsg-2ubuntu5.1 is to be installed
Depends: libgssapi-krb5-2 (= 1.12+dfsg-2ubuntu4) but 1.12+dfsg-2ubuntu5.1 is to be installed
libssl-dev : Depends: libssl1.0.0 (= 1.0.1f-1ubuntu2) but 1.0.1f-1ubuntu2.15 is to be installed
Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
what i can do to fix this?
sudo apt-get update; sudo apt-get dist-upgrade; sudo apt-get install -f
and the output ofapt-cache policy libssl1.0.0 libkrb5-3 libk5crypto3 libgssapi-krb5-2 libcomerr2