上次 Ubuntu 更新后登录时出现黑屏(鼠标指针可见)。
我在执行 startx 命令时收到“哦不!出现错误”屏幕:
我尝试过更新和 dist-upgrade,尝试过重新安装 ubuntu-gnome-desktop,但是包错误损坏。
The following packages have unmet dependencies:
gnome-shell : Depends: gnome-shell-common (= 40.2-0shemgpubuntu2) but 40.3-0shemgpubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
但没有保留包裹
$ sudo dpkg --get-selections | grep hold
$ sudo dpkg --configure -a
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
任何帮助都将不胜感激,谢谢。
答案1
Gnome 40 是通过以下方式安装的苯甲酸
我已取消注释源列表中的以下行/etc/apt/sources.list.d/shemgp-ubuntu-gnome-40-hirsute.list
deb http://ppa.launchpad.net/shemgp/gnome-40/ubuntu/ hirsute main
此后,一切正常。以下命令解决了我的问题
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ubuntu-gnome-desktop --reinstall