Ubuntu 18.04 script gnome-session broken post installation

1

Em uma instalação mínima do Ubuntu 18.04, tentei mudar para um desktop gnome vanilla executando: sudo apt-get install vanilla-gnome-desktop

Esta instalação falhou devido a este bug. problema está fazendo com que todos os apt-get install e apt-get upgrade falhem.

Eu tentei remover os pacotes quebrados com os seguintes comandos, sem sucesso:

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)

e:

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

e

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
    
por kirk 29.05.2018 / 20:23

1 resposta

0

Normalmente, o /etc/alternatives/gdm3.css aponta para /usr/share/gnome-shell/theme/ubuntu.css . O último arquivo está localizado em gnome-shell-common package .
Você pode reinstalá-lo com:

sudo apt-get install gnome-shell-common --reinstall

Se isso não funcionar, você pode tentar corrigir o problema recriando o link manualmente com

sudo ln -s  /usr/share/gnome-shell/theme/ubuntu.css /etc/alternatives/gdm3.css

E, em seguida, execute

sudo apt-get install -f
    
por N0rbert 29.05.2018 / 22:57