我的 Unity 壁纸开始出现异常几周前,经过一番搜索,我终于明白是 Cinnamon 搞错了。我从来没有自己安装过 Cinnamon,但使用过 - 我是说用过 - Nemo。在包目录中没有提到 Cinnamon 软件包是依赖项,但它们肯定已安装。不过有件事我无法解释:我在 10 月份升级到 Ubuntu 13.10 后立即安装了 Nemo,大约 2 个月内 Unity 与 Nemo 无缝共存;我怀疑 Cinnamon 只是在升级期间安装的。
现在的问题是为什么 Nemo 依赖列表与apt-get
包目录中的不同:
$ sudo apt-get install nemo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cinnamon cinnamon-bluetooth cinnamon-common cinnamon-control-center cinnamon-control-center-data cinnamon-desktop-data cinnamon-screensaver cinnamon-session cinnamon-session-common
cinnamon-settings-daemon cinnamon-translations cjs gir1.2-accountsservice-1.0 gir1.2-cinnamondesktop-3.0 gir1.2-gkbd-3.0 gir1.2-gtkclutter-1.0 gir1.2-muffin-3.0 gir1.2-polkit-1.0
gir1.2-upowerglib-1.0 gir1.2-xkl-1.0 libcinnamon-control-center1 libcinnamon-desktop0 libcjs0c libmozjs185-1.0 libmuffin0 libopencv-calib3d2.4 libopencv-contrib2.4 libopencv-core2.4
libopencv-features2d2.4 libopencv-flann2.4 libopencv-highgui2.4 libopencv-imgproc2.4 libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4 libopencv-photo2.4 libopencv-video2.4 libtbb2
muffin-common nemo-data nemo-fileroller python-opencv python-support
Recommended packages:
gir1.2-cjsdbus-1.0
The following NEW packages will be installed
cinnamon cinnamon-bluetooth cinnamon-common cinnamon-control-center cinnamon-control-center-data cinnamon-desktop-data cinnamon-screensaver cinnamon-session cinnamon-session-common
cinnamon-settings-daemon cinnamon-translations cjs gir1.2-accountsservice-1.0 gir1.2-cinnamondesktop-3.0 gir1.2-gkbd-3.0 gir1.2-gtkclutter-1.0 gir1.2-muffin-3.0 gir1.2-polkit-1.0
gir1.2-upowerglib-1.0 gir1.2-xkl-1.0 libcinnamon-control-center1 libcinnamon-desktop0 libcjs0c libmozjs185-1.0 libmuffin0 libopencv-calib3d2.4 libopencv-contrib2.4 libopencv-core2.4
libopencv-features2d2.4 libopencv-flann2.4 libopencv-highgui2.4 libopencv-imgproc2.4 libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4 libopencv-photo2.4 libopencv-video2.4 libtbb2
muffin-common nemo nemo-data nemo-fileroller python-opencv python-support
0 upgraded, 44 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/22.5 MB of archives.
After this operation, 64.0 MB of additional disk space will be used.
Do you want to continue [Y/n]?
如果能使用 Nemo 而没有那么多麻烦那就太好了。谢谢。
更新:输出apt-cache policy
:
$ sudo apt-cache policy nemo
nemo:
Installed: 2.0.8-0~webupd8~saucy
Candidate: 2.0.8-20140108010047-saucy
Version table:
2.0.8-20140108010047-saucy 0
500 http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-nightly/ubuntu/ saucy/main amd64 Packages
2.0.8-20131203010044-saucy 0
500 http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu/ saucy/main amd64 Packages
*** 2.0.8-0~webupd8~saucy 0
100 /var/lib/dpkg/status
1.8.4-1 0
500 http://de.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
答案1
您正在从 ppa 安装 nemo。这些软件包不遵循与存储库中的软件包相同的依赖关系。
这是 PPA:
dpkg-deb --info nemo_2.0.8-20140108010047-saucy_amd64.deb
new debian package, version 2.0.
size 960944 bytes: control archive=1719 bytes.
1529 bytes, 20 lines control
988 bytes, 14 lines md5sums
185 bytes, 7 lines * postinst #!/bin/sh
515 bytes, 18 lines * postrm #!/bin/sh
Package: nemo
Version: 2.0.8-20140108010047-saucy
Architecture: amd64
Maintainer: Linux Mint <[email protected]>
Installed-Size: 2366
Depends: libatk1.0-0 (>= 1.32.0), libglib2.0-data, cinnamon-desktop-data, cinnamon-translations, cinnamon, libc6 (>= 2.14), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libcinnamon-desktop0 (>= 2.0.4-20140107011539-saucy), libexempi3 (>= 2.2.0), libexif12, libgail-3-0 (>= 3.0.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.3), libgtk-3-0 (>= 3.3.18), libnemo-extension1, libnotify4 (>= 0.7.0), libpango-1.0-0 (>= 1.20.0), libpangocairo-1.0-0 (>= 1.14.0), libx11-6, libxml2 (>= 2.7.4), nemo-data (= 2.0.8-20140108010047-saucy), shared-mime-info (>= 0.50), desktop-file-utils (>= 0.7), gvfs (>= 1.3.2)
Recommends: eject, librsvg2-common, gvfs-backends, nemo-fileroller
Suggests: eog, evince | pdf-viewer, totem | mp3-decoder, xdg-user-dirs
Breaks: gnome-bluetooth (<< 3.0), gnome-session (<< 2.28), gnome-volume-manager (<< 2.24), rhythmbox (<< 0.12)
这是存储库:
apt-cache show nemo
Package: nemo
Source: nemo (1.8.4-1)
Version: 1.8.4-1+b1
Installed-Size: 2304
Maintainer: Nicolas Bourdaud <[email protected]>
Architecture: i386
Depends: desktop-file-utils (>= 0.7), gsettings-desktop-schemas, gvfs (>= 1.3.2), libglib2.0-data, nemo-data (= 1.8.4-1), shared-mime-info (>= 0.50), libatk1.0-0 (>= 1.32.0), libc6 (>= 2.7), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libexempi3 (>= 2.2.0), libexif12, libgail-3-0 (>= 3.0.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.35.9), libgnome-desktop-3-7 (>= 3.2.0), libgtk-3-0 (>= 3.3.18), libnemo-extension1 (>= 1.1.2), libnotify4 (>= 0.7.0), libpango-1.0-0 (>= 1.20.0), libpangocairo-1.0-0 (>= 1.14.0), libx11-6, libxml2 (>= 2.7.4)
如您所见,PPA 末尾包含 cinnamon 包,而 repo 中没有。如果您预计 cinnamon 不会安装,则应删除 PPA 并使用存储库,或者打开 bug 以删除 cinnamon 依赖项。