Lors d’une installation minimale d’Ubuntu 18.04, j’ai tenté de passer à un bureau de gnome Vanilla en exécutant: Sudo apt-get install Vanilla-gnome-desktop
Cette installation a échoué à cause de ce bogue. Ce problème entraîne l'échec de toutes les installations d'apt-get et de la mise à niveau d'apt-get.
J'ai essayé de supprimer le (s) paquet (s) cassé (s) avec les commandes suivantes, mais en vain:
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)
et:
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
et
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
Généralement /etc/alternatives/gdm3.css pointe vers /usr/share/gnome-Shell/theme/ubuntu .css . Ce dernier fichier se trouve dans package gnome-Shell-common
_ .
Vous pouvez le réinstaller avec:
Sudo apt-get install gnome-Shell-common --reinstall
Si cela ne fonctionne pas, vous pouvez essayer de résoudre le problème en recréant le lien manuellement avec
Sudo ln -s /usr/share/gnome-Shell/theme/ubuntu.css /etc/alternatives/gdm3.css
Et puis courir
Sudo apt-get install -f