Gnome
Gnome 安裝問題 Debian
用命令
sudo apt-get install gnome-core -f
我有
The following packages have unmet dependencies: gnome-core : Depends: nautilus (>= 3.22) but it is not going to be installed Depends: gnome-sushi (>= 3.20) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
所以我嘗試了:
sudo apt-get install nautilus -f
我有:
The following packages have unmet dependencies: nautilus : Depends: libnautilus-extension1a (= 3.22.3-1) but it is not going to be installed Recommends: gnome-sushi but it is not going to be installed E: Unable to correct problems, you have held broken packages.
在我嘗試之後:
sudo apt-get install gnome-sush -f
我有:
The following packages have unmet dependencies: gnome-sushi : Depends: nautilus (>= 3.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
最後我嘗試了:
sudo apt-get install libnautilus-extension1a -f
我得到了:
libnautilus-extension1a is already the newest version (1:3.14.2-0ubuntu9).
我還嘗試使用(缺少sudo,因為我是 root )進行清理:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
源列表
deb http://http.kali.org/kali kali-rolling 主要貢獻非免費
deb http://security.debian.org/debian-security wheezy/updates main
你
4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
您使用的不是 Debian,而是Kali。然後,由於某種原因,您
libnautilus-extension1a 1:3.14.2-0ubuntu9.1
從 Ubuntu Vivid 獲得了這個包,而 Kali-rolling (& Stretch) 擁有3.22.3-1
.你可以使用
sudo dpkg --remove --force-remove-reinstreq --force-hold libnautilus-extension1a
刪除它。來自
man dpkg
:保留dpkg 不處理標記為保留的包,除非使用 option 強制執行此操作
--force-hold
。reinst-required標記為 reinst-required 的軟體包已損壞,需要重新安裝。除非使用 option 強制,否則無法刪除這些包
--force-remove-reinstreq
。然後您可以
sudo apt-get update
嘗試從您的正常 apt 源重新安裝。
你持有損壞的包是因為你有一個混合的
sources.list
:debian wheezy , ubuntu trusty ,precision 和kali rolling 。編輯您的
sources.list
,僅保留以下行:deb http://http.kali.org/kali kali-rolling main contrib non-free
更新你的包
apt-get update apt-get upgrade apt-get dist-upgrade apt-get -f install
然後安裝 gnome 桌面:
apt-get install gnome-core kali-defaults kali-root-login desktop-base