Não consigo instalar o libpq-dev para o postgresql, tentei
sudo apt-get install libpq-dev
e saída
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: libpq5 (= 9.3.9-0ubuntu0.14.04) but 9.4.4-1.pgdg14.04+1 is to be installed
E: Unable to correct problems, you have held broken packages.
Como consertar esse problema?
dependencies
postgresql
database
indra bin ridwan
fonte
fonte
dpkg --get-selections | grep hold
?Respostas:
Problema resolvido!
Resolvi isso com remove
libpq5
:fonte
sudo apt-get update
primeiro porque eu não tenho as últimas fontes (em execução na imagem do DigitalOcean Ubuntu 14.04, que é provavelmente um pouco velho)O problema pode ser resolvido através das seguintes etapas:
fonte