这是我尝试安装 Banshee 时得到的结果:
sudo apt-get install banshee
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
banshee : Depends: libdbus-glib1.0-cil (>= 0.5) but it is not installable
Depends: libdbus1.0-cil (>= 0.7) but it is not installable
Recommends: banshee-extension-soundmenu (= 2.3.1+git20111114.r1.aea7412-0ubuntu1+maverick) but it is not going to be installed
E: Broken packages
我尝试搜索“如何修复损坏的软件包”帖子,但都无济于事。我该怎么做才能修复这个问题?
答案1
您为 ubuntu maverick meerkat 安装了 banshee 2.3.1 ppa?您可能应该在问题中包含这些信息,而不是让侦探们自己找出来 :)
= 2.3.1+git20111114.r1.aea7412-0ubuntu1+maverick
处理此问题最简单的方法是从“/etc/apt/sources.list.d”中删除有问题的存储库。然后,添加以下 ppa
sudo add-apt-repository ppa:banshee-team/ppa
做完这些之后,
sudo apt-get update && sudo apt-get install libdbus-glib1.0-cil libdbus1.0-cil
(它们在上述 ppa 上可用)。然后,您可以重新添加每日 ppa,
sudo add-apt-repository ppa:banshee-team/banshee-daily;sudo apt-get update && sudo apt-get upgrade
您可以从那里安装声音菜单扩展。
ps. 我不知道删除不稳定的 ppa 是否绝对必要 —— 您可能只需添加稳定的 ppa 并从中安装 libdbus* 依赖项即可。
答案2
尝试这个:
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get install banshee
这样做之后问题还存在吗?从以下位置下载缺少的依赖项packages.ubuntu.com,安装它们,然后重试。