我正在尝试解决 unity login 的一个问题,它破坏了某些东西,我无法安装/删除任何包。如果我尝试安装一个包或尝试安装缺少的依赖项,结果与下面显示的相同。apt-get install package-name
apt-get install -f
The following packages have unmet dependencies:
aptitude : Depends: aptitude-common (= 0.6.8.2-1ubuntu4) but it is not going to be installed
Depends: libboost-iostreams1.54.0 but it is not going to be installed
Depends: libcwidget3 but it is not going to be installed
libpam-systemd : Depends: systemd-services (= 204-5ubuntu20.27)
Breaks: libpam-systemd:i386 (!= 204-5ubuntu20.27) but 204-5ubuntu20.25 is to be installed
libpam-systemd:i386 : Depends: libc6:i386 (>= 2.8) but it is not going to be installed
Depends: libcap2:i386 (>= 2.10) but it is not going to be installed
Depends: libcgmanager0:i386 but it is not going to be installed
Depends: libdbus-1-3:i386 (>= 1.0.2) but it is not going to be installed
Depends: libnih-dbus1:i386 (>= 1.0.0) but it is not going to be installed
Depends: libnih1:i386 (>= 1.0.0) but it is not going to be installed
Depends: libpam0g:i386 (>= 0.99.7.1) but it is not going to be installed
Breaks: libpam-systemd (!= 204-5ubuntu20.25) but 204-5ubuntu20.27 is to be installed
libsystemd-daemon0 : Breaks: libsystemd-daemon0:i386 (!= 204-5ubuntu20.27) but 204-5ubuntu20.25 is to be installed
libsystemd-daemon0:i386 : Depends: libc6:i386 (>= 2.8) but it is not going to be installed
Breaks: libsystemd-daemon0 (!= 204-5ubuntu20.25) but 204-5ubuntu20.27 is to be installed
systemd-services:i386 : Depends: libacl1:i386 (>= 2.2.51-8) but it is not going to be installed
Depends: libc6:i386 (>= 2.17) but it is not going to be installed
Depends: libcap2:i386 (>= 2.10) but it is not going to be installed
Depends: libcgmanager0:i386 but it is not going to be installed
Depends: libdbus-1-3:i386 (>= 1.1.1) but it is not going to be installed
Depends: libnih-dbus1:i386 (>= 1.0.0) but it is not going to be installed
Depends: libnih1:i386 (>= 1.0.0) but it is not going to be installed
Depends: libselinux1:i386 (>= 2.0.65) but it is not going to be installed
Depends: libudev1:i386 (>= 183) but it is not going to be installed
Depends: systemd-shim:i386 (>= 3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
无论我尝试安装或删除什么,输出都是相同的。有办法修复吗?
答案1
基本上,在更新后,每次我们尝试登录时,Unity 都会崩溃。问题似乎与 compiz 有关。我们安装了 Gnome Desktop,但仍然无法登录。
在一些论坛上他们安装了一些库......从那一刻起我们就不能再使用 apt-get install....或删除.....
答案2
....神奇的是,今天早上 apt-get 又可以工作了.....但我不知道为什么......
我所做的唯一一件事就是删除了 google 存储库,因为 apt-get 更新期间出现 gpg 错误,我没有意识到神奇地修复了什么...
然后我运行 apt-get install -f,删除了很多软件包,包括 Network-Manager 和 apt-get autoremove...
我们重新安装了 Unity,并添加了 Gnome 作为桌面管理器。即使出现异常,它似乎也能正常工作。在某些配置文件中,如果您使用 Unity,则上方的栏是 Gnome 使用的栏,而不是 Unity 本身。但我们没有动过.....担心再次破坏某些东西。