在 Ubuntu 14.04 上安裝 Cinnamon 時如何修復未滿足的依賴關係?

在 Ubuntu 14.04 上安裝 Cinnamon 時如何修復未滿足的依賴關係?

在 Ubuntu 14.04 上安裝 Cinnamon 時如何修復未滿足的依賴關係?

我附上了一堆關於我迄今為止所嘗試過的資訊。


嘗試1:

所以我發現這個問題如何在 ubuntu 14.04 上安裝 cinnamon。我嘗試了第一個 ppa 存儲庫,但它因“未滿足的依賴關係...肉桂螢幕保護程式”而失敗。

嘗試2:

然後我使用 ppa-purge 來刪除該儲存庫。然後執行 apt-get clean 。然後我嘗試了操作指南中的第二個 ppa 儲存庫。我嘗試再次安裝肉桂......但它以同樣的方式失敗:

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

相關內容