sudo apt-get -f install 错误,如何删除或重新安装损坏的软件包

sudo apt-get -f install 错误,如何删除或重新安装损坏的软件包

我需要libgl1-mesa-dev在 Ubuntu 14.0.4 上安装 lib,因为 QT 5.5 依赖于此 lib。我运行以下命令并出现错误,我该如何修复此错误:

$ sudo apt-get install build-essential libgl1-mesa-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libcheese-dev : Depends: libcheese3 (= 3.4.1-0ubuntu2.1) but it is not installable
                 Depends: gir1.2-cheese-3.0 (= 3.4.1-0ubuntu2.1) but it is not going to be installed
                 Depends: libglib2.0-dev (>= 2.28.0) but it is not going to be installed
                 Depends: libclutter-1.0-dev (>= 1.6.1) but it is not going to be installed
                 Depends: libgstreamer0.10-dev (>= 0.10.32) but it is not going to be installed
                 Depends: libgstreamer-plugins-base0.10-dev (>= 0.10.32) but it is not going to be installed
                 Depends: libgdk-pixbuf2.0-dev but it is not going to be installed
 libcheese-gtk-dev : Depends: libcheese-gtk21 (= 3.4.0-0ubuntu1) but 3.4.1-0ubuntu2 is to be installed
                     Depends: libcheese-dev (= 3.4.0-0ubuntu1) but 3.4.1-0ubuntu2.1 is to be installed
                     Depends: libglib2.0-dev (>= 2.28.0) but it is not going to be installed
                     Depends: libgtk-3-dev (>= 2.99.4) but it is not going to be installed
                     Depends: libgstreamer0.10-dev (>= 0.10.32) but it is not going to be installed
                     Depends: libgstreamer-plugins-base0.10-dev (>= 0.10.32) but it is not going to be installed
                     Depends: libclutter-gtk-1.0-dev (>= 0.91.8) but it is not going to be installed
                     Depends: libcanberra-gtk3-dev (>= 0.26) but it is not going to be installed
 libcheese-gtk21 : Depends: libcheese3 (>= 3.3.5) but it is not installable
                   Depends: libcogl9 (>= 1.7.4) but it is not installable
                   Depends: libmx-1.0-2 (>= 1.2.0) but it is not going to be installed
                   Depends: cheese-common (= 3.4.1-0ubuntu2) but 3.10.2-0ubuntu2 is to be installed
 libgl1-mesa-dev : Depends: mesa-common-dev (= 10.1.0-4ubuntu5) but 8.0.4-0ubuntu0.6 is to be installed
                   Depends: libgl1-mesa-glx (= 10.1.0-4ubuntu5)
                   Depends: libx11-xcb-dev but it is not going to be installed
                   Depends: libxcb-dri3-dev but it is not going to be installed
                   Depends: libxcb-present-dev but it is not going to be installed
                   Depends: libxcb-sync-dev but it is not going to be installed
                   Depends: libxshmfence-dev but it is not going to be installed
                   Depends: libxcb-dri2-0-dev but it is not going to be installed
                   Depends: libxcb-glx0-dev but it is not going to be installed
                   Depends: libxdamage-dev but it is not going to be installed
                   Depends: libxxf86vm-dev but it is not going to be installed
                   Depends: x11proto-dri2-dev (>= 2.6) but it is not going to be installed
                   Depends: x11proto-gl-dev (>= 1.4.14) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

问候,戴维特

答案1

尝试查看最后安装的软件包[这里]并确定这些是否是导致错误的原因,也不要安装来自 synaptic 之外的软件包 [除非您仔细记录这些软件包]

如果你不知道如何解决问题,请在此处发布最后安装的软件包,[不需要整个历史记录,只需最后 3 或 4 个软件包]

相关内容