在 Ubuntu 14.04 上安装 Cinnamon 时如何修复未满足的依赖关系?
我附加了迄今为止我所尝试过的大量信息。
尝试 1:
所以我在如何在 ubuntu 14.04 上安装 cinnamon。我尝试了第一个 ppa 存储库,但失败并显示“未满足依赖关系...cinnamon-screensaver”。
尝试2:
然后我使用 ppa-purge 删除了该存储库。然后执行了 apt-get clean。然后我尝试了操作指南中的第二个 ppa 存储库。我再次尝试安装 cinnamon……但还是以同样的方式失败了:
root@wheaton-ubuntu14:~# apt-get install cinnamon
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:
cinnamon : Depends: cinnamon-screensaver (>= 2.6.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
尝试3:
然后我抬头如何修复未满足的依赖关系,并找到了这个有 300+ 赞同的指南所以我以为我已经准备好了!
尝试4:
然后我看到某人成功了用aptitude install cinnamon
。但每次 aptitude 说“这个解决方案可以接受吗”时,cinnamon 仍然被标记为“未安装”。所以我中断了交互过程。
尝试 5:
我用谷歌搜索了这个错误,看到了debian 线程在某处显示“哦,git 中有一个错误修复。”但随后该线程以“哦,谢谢”结束,但没有关于如何修复该问题的说明。
不知道接下来要去哪里。
更新 -根据评论中的要求以下是所需信息:
root@wheaton-ubuntu14:~# lsb_release -a; uname -a; apt-cache policy cinnamon cinnamon-screensaver; apt-get install cinnamon-screensaver
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Linux wheaton-ubuntu14 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cinnamon:
Installed: (none)
Candidate: 2.6.12ubuntu1
Version table:
2.6.12ubuntu1 0
500 http://ppa.launchpad.net/lestcape/cinnamon/ubuntu/ trusty/main amd64 Packages
cinnamon-screensaver:
Installed: (none)
Candidate: 2.6.4ubuntu1
Version table:
2.6.4ubuntu1 0
500 http://ppa.launchpad.net/lestcape/cinnamon/ubuntu/ trusty/main amd64 Packages
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:
cinnamon-screensaver : Depends: gir1.2-webkit2-3.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
更新 2 - 来自 AB 用户的另一个请求:看这里
答案1
包裹
cinnamon-screensaver
依赖于取决于
gir1.2-webkit2-3.0
这取决于
gir1.2-javascriptcoregtk-3.0 (= 2.4.0-1ubuntu2)
(您尚未启用trusty-updates
,但这不是问题)。
您的问题是,您已经安装了(手动或更早通过 PPA 或其他方式)版本2.4.3-1ubuntu2
,如您在您运行的命令的输出:
# apt-cache policy gir1.2-javascriptcoregtk-3.0
gir1.2-javascriptcoregtk-3.0:
Installed: 2.4.3-1ubuntu2
Candidate: 2.4.3-1ubuntu2
Version table:
*** 2.4.3-1ubuntu2 0
100 /var/lib/dpkg/status
2.4.0-1ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
解决方案比你想象的要简单:
降级软件包,并且由于您的系统中没有错误版本的存储库,所以我们完成了。
sudo apt-get install gir1.2-javascriptcoregtk-3.0=2.4.0-1ubuntu2
sudo apt-get install -f