在我的 Ubuntu 13.04 机器上,我曾经有更新和优化的开放图形驱动程序 PPA已启用,最近的更新需要 Wayland 作为依赖项。这似乎破坏了我的软件包系统。
我禁用了这个 PPA,所以当我尝试升级时,我得到以下信息
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libegl1-mesa : Depends: libwayland-client0 (>= 1.2.1) but it is not installable
Depends: libwayland-server0 (>= 1.2.1) but it is not installable
Recommends: libegl1-mesa-drivers but it is not installed
libgail-3-0 : Depends: libgtk-3-0 (= 3.6.4-0ubuntu8+gd~r) but 3.6.4-0ubuntu8 is installed
libgbm1 : Depends: libwayland-client0 (>= 1.2.1) but it is not installable
Depends: libwayland-server0 (>= 1.2.1) but it is not installable
libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 9.3~git1309181129.ec44d5~gd~r) but 9.3~git1309171217.a1b6e6~gd~r is installed
libgtk-3-0 : Depends: libgtk-3-common (= 3.6.4-0ubuntu8) but 3.6.4-0ubuntu8+gd~r is installed
libgtk-3-bin : Depends: libgtk-3-0 (>= 3.6.4-0ubuntu8+gd~r) but 3.6.4-0ubuntu8 is installed
E: Unmet dependencies. Try using -f.
我不敢这样做,sudo apt-get -f install
因为这会删除大量的软件包,包括 unity、network-manager-gnome 等。
我该怎么办?我尝试从 Launchpad 上找到的 DEB 包安装 Synaptic(及其依赖项之一 libgtk-3-0),但也失败了。
我准备使用 ppa-purge 彻底删除上述 PPA。当我尝试这样做时,它提供的解决方案总是暗示删除 Unity,而这并不是我想要的。
以下是输出sudo apt-get check
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libegl1-mesa : Depends: libwayland-client0 (>= 1.2.1) but it is not installable
Depends: libwayland-server0 (>= 1.2.1) but it is not installable
Recommends: libegl1-mesa-drivers but it is not installed
libgail-3-0 : Depends: libgtk-3-0 (= 3.6.4-0ubuntu8+gd~r) but 3.6.4-0ubuntu8 is installed
libgbm1 : Depends: libwayland-client0 (>= 1.2.1) but it is not installable
Depends: libwayland-server0 (>= 1.2.1) but it is not installable
libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 9.3~git1309181129.ec44d5~gd~r) but 9.3~git1309171217.a1b6e6~gd~r is installed
libgtk-3-0 : Depends: libgtk-3-common (= 3.6.4-0ubuntu8) but 3.6.4-0ubuntu8+gd~r is installed
libgtk-3-bin : Depends: libgtk-3-0 (>= 3.6.4-0ubuntu8+gd~r) but 3.6.4-0ubuntu8 is installed
E: Unmet dependencies. Try using -f.
答案1
尝试以下命令:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libwayland-client0_1.2.1-1~r~gd_amd64.deb /var/cache/apt/archives/libwayland-server0_1.2.1-1~r~gd_amd64.deb
sudo apt-get install -f
sudo apt-get dist-upgrade
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libwayland-cursor0_1.2.1-1~r~gd_amd64.deb
sudo apt-get dist-upgrade
答案2
我最终做的是重新安装 Ubuntu,因为无论如何我都想升级到 Ubuntu 13.10。