我安装了一些软件包,要查看已安装软件包的列表,请参见此处。在登录之前,我从办公桌前走开,锁上了计算机并返回黑屏。
我搜索了谷歌,发现这告诉我重新启动服务,因此我将sudo service lightdm --full-restart
其打开进入登录屏幕,输入密码,然后登录到黑屏,上面带有科莫多图标和鼠标光标。所以我搜索更多一些,发现这个和这个。尝试了所有这些,没有任何反应。
因此,我假设我将不得不重新安装Ubuntu桌面或从备份运行。我在运行时遇到的唯一问题sudo apt-get install ubuntu-desktop --reinstall
是一堆unable to correct problems, you have held broken packages
:
The following packages have unmet dependencies:
ubuntu-desktop : Depends: software-center but it is not going to be installed
Depends: ubuntu-sso-client but it is not going to be installed
Depends: unity but it is not going to be installed
Recommends: bluez-alsa but it is not going to be installed
Recommends: empathy but it is not going to be installed
Recommends: firefox but it is not going to be installed
Recommends: gnome-disk-utility but it is not going to be installed
Recommends: gnome-orca but it is not going to be installed
Recommends: landscape-client-ui-install but it is not going to be installed
Recommends: pulse-audio-module-x11 but it is not going to be installed
Recommends: python3-aptdaemon.pkcompat but it is not going to be installed
Recommends: totem-mozilla but it is not going to be installed
Recommends: ttf-punjabi-fonts but it is not going to be installed
Recommends: vino but it is not going to be installed
E: Unable to correct problems, you have held broken packages
这些听起来都很重要,并且好像它们应该已经安装了,所以我的问题很简单,我现在想做什么呢?我如何才能成功解决此问题?
首先通过清除缓存sudo apt-get autoremove && sudo apt-get clear cache
,然后键入sudo apt-get update && sudo apt-get upgrade
。我认为这肯定会起作用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句