摘要:apt安装时提示“The following packages have unmet dependencies”错误的解决方法...
安装最小化的GNOME桌面环境,输入命令:apt-get install -y gnome-core
root@U-NAS:/# apt-get install -y gnome-core
出现错误提示,提示依赖异常
错误提示
The following packages have unmet dependencies:
gnome-core : Depends: caribou (>= 0. 4.21) but it is not going to be installed
Depends: evolution-data-server (>= 3. 22) but it is not going to be installed
Depends: gdm3 (>= 3. 22) but it is not going to be installed
Depends: gedit (>= 3. 22) but it is not going to be installed
Depends: gnome-contacts (>= 3. 22) but it is not going to be installed
Depends: gnome keyring
(>= 3.20) but it is not going to be installed
分
Depends: gnome session
(>= 3.22) but it is not going to be installed
Depends: gnome-shell (>= 3. 22)
but it is not going to be installed
Depends: gnome-shel l-extensions (= 3. 22) but it is not going to be installed
Depends: chrome-gnome-shell but it is not going to be installed
Depends: sys tem-config-printer-common but it is not going to be installed
Depends: system-config printer-udev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@U-NAS:/#
解决方法:
1.安装 aptitude,输入命令:sudo apt-get install aptitude
root@U-NAS:/# sudo apt-get install aptitude
2.利用 aptitude 来安装,输入命令:sudo aptitude install xxx,xxx为软件包名称,下方示例以 gnome-core 为演示
root@U-NAS:/# sudo aptitude install gnome-core
aptitude与apt-get的区别和联系
aptitude 与 apt-get 都是Debian及其衍生系统中的包管理工具。aptitude 在处理包依赖问题上更好。
---------------------------------- THE END ----------------------------------