在 ubuntu 14.4 LTS 上安装某些软件包显示错误

在 ubuntu 14.4 LTS 上安装某些软件包显示错误

我想在 ubuntu 14.4 LTS 上安装以下软件包

libreadline-dev   liblua5.2-dev libevent-dev  python-dev

但是当我想要安装时libreadline-dev出现错误:

The following packages have unmet dependencies:
libreadline-dev : Depends: libreadline6-dev (= 6.2-8) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我想通过安装libreadline6-dev错误修复它时显示:

The following packages have unmet dependencies:
libreadline6-dev : Depends: libreadline6 (= 6.2-8) but 6.3-4ubuntu2 is to be installed
                   Depends: libtinfo-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

安装也libevent-dev显示错误:

The following packages have unmet dependencies:
libevent-dev : Depends: libevent-2.0-5 (= 2.0.16-stable-1ubuntu0.1) but 2.0.21-stable-1ubuntu1.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

错误python-dev显示:

 The following packages have unmet dependencies:
 python-dev : Depends: python (= 2.7.3-0ubuntu2.2) but 2.7.5-5ubuntu3 is to be installed
          Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed
 E: Unable to correct problems, you have held broken packages.

我该如何修复它?

答案1

尝试一下apt-get install -f。如果仍然出现依赖项错误,那么我猜你必须删除并重新安装该软件包。

相关内容