.png)
我在用著烏班圖14.04LTS(Trusty Tahr)伺服器:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
我正在嘗試安裝最小的 Ubuntu 作業系統,但是當我輸入命令時
apt-get install gnome-core
我得到這個輸出:
The following packages have unmet dependencies:
gnome-core : Depends: eog (>= 3.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
使用後apt-cache policy gnome-core eog
,輸出為:
gnome-core:
Installed: (none)
Candidate: 1:3.8+4ubuntu3
Version table:
1:3.8+4ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages eog: Installed: (none) Candidate: 3.10.2-0ubuntu5 Version table:
3.10.2-0ubuntu5 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
強迫後腦電圖使用安裝apt-get install eog
,輸出為:
The following packages have unmet dependencies:
eog :
Depends: libpeas-1.0-0 (>= 1.0.0) but it is not going to be installed
Depends: gir1.2-peas-1.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
之後,使用指令apt-cache policy libpeas-1.0-0 gir1.2-peas-1.0
:
輸出是:
libpeas-1.0-0:已安裝:(無)候選:1.8.1-2ubuntu2 版本表:1.8.1-2ubuntu2 0 500http://archive.ubuntu.com/ubuntu/trusty/main amd64 軟體包 gir1.2-peas-1.0:已安裝:(無)候選:1.8.1-2ubuntu2 版本表:1.8.1-2ubuntu2 0 500http://archive.ubuntu.com/ubuntu/trusty/main amd64 軟體包
然後使用命令apt-get install libpeas-1.0-0 gir1.2-peas-1.0
,輸出是:
以下軟體套件具有未滿足的依賴: libpeas-1.0-0 :依賴:libpython3.4 (>= 3.4~b1) 但不會安裝
E:無法修正問題,您持有破損的包裹。
使用命令後apt-cache policy libpython3.4
輸出為:
libpython3.4:
已安裝:(無)
候選版本:3.4.0-2ubuntu1.1
版本表:
> 3.4.0-2ubuntu1.1 0
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages 3.4.0-2ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
使用命令後apt-get install libpython3.4
輸出為:
以下軟體包具有未滿足的依賴關係:
libpython3.4 :依賴:libpython3.4-stdlib (= 3.4.0-2ubuntu1.1) 但要安裝 >3.4.3-1ubuntu1~14.04.1
E:無法修正問題,您持有破損的包裹。
使用命令後sudo apt-get install libpython3.4-stdlib
輸出為:
正在讀取套件清單...已完成 建立依賴關係樹 正在讀取狀態資訊...已完成 libpython3.4-stdlib 已經是最新版本。 0 已升級,0 已新安裝,0 已刪除,0 未升級。
我該如何解決這個問題?
答案1
安裝正確的版本libpython3.4-stdlib
sudo apt-get update
sudo apt-get install libpython3.4-stdlib=3.4.0-2ubuntu1.1 libpython3.4-minimal=3.4.0-2ubuntu1.1
因為libpython3.4-stdlib
需要精確的版本3.4.0-2ubuntu1.1
和不是您安裝的版本3.4.3-1ubuntu1~14.04.1
。
之後gnome-core
透過安裝
sudo apt-get install gnome-core
並重新安裝一些已卸載的軟體包
sudo apt-get install lsb-release python3 update-notifier-common
最後
sudo apt-mark auto libpython3.4-stdlib libpython3.4-minimal