继续尝试更新 Ubuntu 12.04,但它一直告诉我我的软件包系统已损坏。我运行 apt-get -f install 并得到以下信息:
owner@MyLaptop:~$ sudo apt-get -f install
[sudo] password for owner:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
thunderbird-globalmenu linux-headers-3.5.0-34-generic
linux-headers-3.5.0-32-generic compiz-plugins compiz-plugins-main
python-compizconfig python-central linux-headers-3.5.0-23
linux-headers-3.5.0-32 linux-headers-3.5.0-34 linux-headers-3.5.0-23-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
indicator-session
The following packages will be upgraded:
indicator-session
1 upgraded, 0 newly installed, 0 to remove and 399 not upgraded.
4 not fully installed or removed.
Need to get 0 B/75.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 12465 package 'indicator-session':
`Depends' field, reference to `libcairo2':
`>' is obsolete, use `>=' or `>>' instead
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 12465 package 'indicator-session':
`Depends' field, reference to `libcairo2':
version value starts with non-alphanumeric, suggest adding a space
dpkg: error: parsing file '/var/lib/dpkg/status' near line 12465 package 'indicator-session':
`Depends' field, reference to `libcairo2': version contains ` '
E: Sub-process /usr/bin/dpkg returned an error code (2)
我从更新管理器获得的详细信息是:
The following packages have unmet dependencies:
indicator-session: Depends: libc6 (>= 2.3.6-6~) but 2.15-0ubuntu10.10 is installed
Depends: libcairo2 (>= } 1.2.4) but 1.10.2-6.1ubuntu3 is installed
Depends: libdbus-glib-1-2 (>= 0.78) but 0.98-1ubuntu1.1 is installed
Depends: libdbusmenu-glib4 (>= 0.4.2) but 0.6.2-0ubuntu0.1 is installed
Depends: libdbusmenu-gtk3-4 (>= 0.4.2) but 0.6.2-0ubuntu0.1 is installed
Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but 2.26.1-1 is installed
Depends: libglib2.0-0 (>= 2.26.0) but 2.32.3-0ubuntu1 is installed
Depends: libgtk-3-0 (>= 3.0.0) but 3.4.2-0ubuntu0.7 is installed
Depends: libgudev-1.0-0 (>= 147) but 1:175-0ubuntu9.3 is installed
Depends: libpango1.0-0 (>= 1.14.0) but 1.30.0-0ubuntu3.1 is installed
任何帮助都将不胜感激,谢谢。
编辑:这是我运行 apt-cache policy indicator-session 时得到的结果:
indicator-session:
Installed: 0.3.96-0ubuntu1
Candidate: 0.3.96-0ubuntu1
Version table:
0.3.96-0ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
*** 0.3.96-0ubuntu1 0
100 /var/lib/dpkg/status
答案1
sudo apt-get clean
它将清理存储库,或者您dpkg
正在 Ubuntu 软件中心或另一个终端中安装另一个软件包。或者您在安装过程中破坏了任何软件包。检查并运行
sudo apt-get update