在ubuntu 14.4上安装libpcre3-dev时出错

时间:2016-03-18 09:58:58

标签: ubuntu ubuntu-14.04

我想在ubuntu 14.4上安装libpcre3-dev,但是当我输入此命令sudo apt-get install libpcre3-dev时出现如下错误:

 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:
libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2) but 1:8.31-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

我该如何解决?

1 个答案:

答案 0 :(得分:1)

https://askubuntu.com/questions/813788/cant-install-libpcre3-dev/813797

sudo apt-get install libpcre3=1:8.31-2ubuntu2 libpcre3-dev=1:8.31-2ubuntu2

强制使用正确的版本。