无法安装多个开发库

无法安装多个开发库

我无法安装几个软件包。以下是发生的情况。我安装了 Ubuntu 12.04,ppa:ricotz/testing然后添加并升级到 12.10。我的系统运行正常,但apt-get build-dep gnome-terminal例如,不起作用:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have unmet dependencies:
 libgtk-3-dev : Depends: libgtk-3-0 (= 3.6.0-0ubuntu3.2) but 3.6.1-0ubuntu1~12.04~ricotz1 is to be installed
                Depends: gir1.2-gtk-3.0 (= 3.6.0-0ubuntu3.2) but 3.6.1-0ubuntu1~12.04~ricotz1 is to be installed
                Depends: libpango1.0-dev (>= 1.30.0) but it is not going to be installed
                Depends: libcairo2-dev (>= 1.10.0) but it is not going to be installed
 libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
                 Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
 libvte-2.90-dev : Depends: libcairo2-dev but it is not going to be installed
                   Depends: libpango1.0-dev (>= 1.22.0) but it is not going to be installed
E: Build-dependencies for gnome-terminal could not be satisfied.
exit 100

不再有ppa:ricotz/testing,我想它在我升级时被禁用/删除了,但我仍然收到大量错误。

答案1

您应该尝试清理您的软件包和软件包列表。尝试以下命令:

sudo apt-get update
sudo apt-get autoremove
sudo apt-get install -f

第一个命令将更新您的软件包列表,第二个命令将删除所有不再需要的软件包,第三个命令将安装其他软件包需要但尚未安装的所有软件包。

相关内容