无法在 ubuntu 14.04 中安装 libpq-dev

ind*_*wan 13 dependencies database postgresql

我无法为 postgresql 安装 libpq-dev,我试过了

sudo apt-get install libpq-dev
Run Code Online (Sandbox Code Playgroud)

和输出

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.
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题?

ind*_*wan 28

问题解决了!

我用 remove 解决了这个问题libpq5

sudo apt-get remove libpq5
sudo apt-get install libpq-dev
Run Code Online (Sandbox Code Playgroud)