首先,我是 Linux 新手。现在,我尝试安装一个名为 Clementine 的音乐播放器(在 Kali Linux 2.0 x64 上),但它尚未(正确?)安装(因为我可以在应用程序列表中看到它的图标)。现在,每次我尝试更新/升级源列表时,由于 Clementine 安装不当,我都会收到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
clementine : Depends: libgpod4 (>= 0.6.0) but it is not installed
Depends: liblastfm1 (>= 1.0.0) but it is not installed
Depends: libqca2 (>= 2.0.2) but it is not installed
Depends: libqjson0 (>= 0.7.1) but it is not installed
Depends: gstreamer0.10-plugins-ugly but it is not installable
Depends: libprojectm-data but it is not installable or
projectm-data but it is not installed
libqca2-plugin-ossl : Depends: libqca2 (>= 2.0.2) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
拜托,请帮帮我吧!
答案1
尝试以下命令:
sudo apt-get install --fix-broken
来自apt-get 手册页:
-f, --修复损坏的
使固定;尝试纠正依赖关系已损坏的系统。当与安装/删除一起使用时,此选项可以省略任何软件包以允许 APT 推断出可能的解决方案。如果指定了软件包,则这些软件包必须完全纠正问题。第一次运行 APT 时有时需要该选项; APT 本身不允许系统上存在损坏的软件包依赖关系。系统的依赖结构可能会严重损坏,以至于需要手动干预(这通常意味着使用 dpkg --remove 来消除一些有问题的包)。在某些情况下,将此选项与 -m 一起使用可能会产生错误。配置项:APT::Get::Fix-Broken。