2

由于 libcanberra-gtk0 上的依赖项错误,无法安装任何软件包也不是“apt-get upgrade”

apt-get 检查

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gnome-session-canberra : Breaks: libcanberra-gtk0 (< 0.28-4) but 0.28-3ubuntu3 is installed
E: Unmet dependencies. Try using -f.

apt-get -f 安装

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libcanberra-gtk0
The following packages will be upgraded:
  libcanberra-gtk0
1 upgraded, 0 newly installed, 0 to remove and 585 not upgraded.
2 not fully installed or removed.
Need to get 0 B/17.1 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of libcanberra-gtk0:i386:
 gnome-session-canberra (0.28-4) breaks libcanberra-gtk0 (<< 0.28-4) and is unpacked but not configured.
  Version of libcanberra-gtk0:i386 to be configured is 0.28-3ubuntu3.
dpkg: error processing libcanberra-gtk0:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-session-canberra:
 gnome-session-canberra depends on libcanberra-gtk0; however:
  Package libcanberra-gtk0:i386 is not configured yet.
dpkg: error processing gnome-session-canberra (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      Errors were encountered while processing:
 libcanberra-gtk0:i386
 gnome-session-canberra
E: Sub-process /usr/bin/dpkg returned an error code (1)

试图安装一些东西 apt-get install -f aptitude

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:
 aptitude : Depends: libboost-iostreams1.49.0 (>= 1.49.0-1) but it is not going to be installed
            Depends: libcwidget3 but it is not going to be installed
            Depends: libept1.4.12 but it is not going to be installed
            Recommends: aptitude-doc-en but it is not going to be installed or
                        aptitude-doc
            Recommends: libparse-debianchangelog-perl but it is not going to be installed
 gnome-session-canberra : Breaks: libcanberra-gtk0 (< 0.28-4) but 0.28-3ubuntu3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我如何重新安装软件包?

提前致谢。

4

1 回答 1

0

您必须在启动板中查找指定的包,因此libcanberra-gtk0您需要到这里,但您可能想更改为另一个 ubuntu 版本和架构。

然后您需要重新输入sudo apt-get -f install,并且您可能会不断收到有关库依赖项的错误消息,并且您必须再次重复该过程。

但是,这种方法也很危险,因为它也会影响 ubuntu 升级版本的方式……因为它无法解析这些包。

于 2013-06-08T15:03:39.113 回答