在Ubuntu18.04的最小安装上,我试图通过运行:sudo apt-get install vanilla-gnome-desktop切换到一个普通的gnome桌面
此安装由于这只虫子。失败,此问题导致所有apt-get安装和apt升级失败。
我试图用以下命令删除已损坏的包(S),但没有效果:
hugh@xps:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gnome-session (3.28.1-0ubuntu3) ...
update-alternatives: error: cannot stat file '/etc/alternatives/gdm3.css': Invalid argument
dpkg: error processing package gnome-session (--configure):
installed gnome-session package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
gnome-session
E: Sub-process /usr/bin/dpkg returned an error code (1)以及:
hugh@xps:~$ sudo dpkg --remove --force-remove-reinstreq gnome-session
(Reading database ... 166375 files and directories currently installed.)
Removing gnome-session (3.28.1-0ubuntu3) ...
update-alternatives: error: cannot stat file '/etc/alternatives/gdm3.css': Invalid argument
dpkg: error processing package gnome-session (--remove):
installed gnome-session package pre-removal script subprocess returned error exit status 2
Errors were encountered while processing:
gnome-session和
hugh@xps:~$ sudo apt-get install --reinstall gnome-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for gnome-session:amd64发布于 2018-05-29 20:57:03
通常是/etc/gdm3.css/gdm3.css指向/usr/share/gnome-shell/ points /ubuntu.css。后一个文件位于gnome-shell-common套餐中。您可以通过以下方式重新安装:
sudo apt-get install gnome-shell-common --reinstall如果它不能工作,您可以尝试通过手动重新创建链接来修复问题。
sudo ln -s /usr/share/gnome-shell/theme/ubuntu.css /etc/alternatives/gdm3.css然后跑
sudo apt-get install -fhttps://askubuntu.com/questions/1041673
复制相似问题