Ubuntu 18.04 gnome-session broken post installation script












1















On a a minimal install of Ubuntu 18.04, I attempted to switch to a vanilla gnome desktop by running:
sudo apt-get install vanilla-gnome-desktop



This installation failed due to this bug. This issue is causing all apt-get install and apt-get upgrade's to fail.



I have attempted to remove the broken package(s) with the following commands, to no avail:



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)


and:



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


and



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









share|improve this question























  • Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

    – N0rbert
    May 29 '18 at 20:53


















1















On a a minimal install of Ubuntu 18.04, I attempted to switch to a vanilla gnome desktop by running:
sudo apt-get install vanilla-gnome-desktop



This installation failed due to this bug. This issue is causing all apt-get install and apt-get upgrade's to fail.



I have attempted to remove the broken package(s) with the following commands, to no avail:



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)


and:



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


and



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









share|improve this question























  • Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

    – N0rbert
    May 29 '18 at 20:53
















1












1








1


1






On a a minimal install of Ubuntu 18.04, I attempted to switch to a vanilla gnome desktop by running:
sudo apt-get install vanilla-gnome-desktop



This installation failed due to this bug. This issue is causing all apt-get install and apt-get upgrade's to fail.



I have attempted to remove the broken package(s) with the following commands, to no avail:



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)


and:



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


and



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









share|improve this question














On a a minimal install of Ubuntu 18.04, I attempted to switch to a vanilla gnome desktop by running:
sudo apt-get install vanilla-gnome-desktop



This installation failed due to this bug. This issue is causing all apt-get install and apt-get upgrade's to fail.



I have attempted to remove the broken package(s) with the following commands, to no avail:



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)


and:



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


and



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






apt gnome dpkg 18.04 gnome-session






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 29 '18 at 18:23









kirkkirk

6815




6815













  • Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

    – N0rbert
    May 29 '18 at 20:53





















  • Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

    – N0rbert
    May 29 '18 at 20:53



















Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

– N0rbert
May 29 '18 at 20:53







Please add output of the ls -al /etc/alternatives/gdm3.css command to the question.

– N0rbert
May 29 '18 at 20:53












1 Answer
1






active

oldest

votes


















0














Usually /etc/alternatives/gdm3.css points to /usr/share/gnome-shell/theme/ubuntu.css. The latter file is located in gnome-shell-common package.

You can reinstall it with:



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


If it does not work you can try to fix the problem by recreating the link manually with



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


And then run



sudo apt-get install -f





share|improve this answer



















  • 2





    Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

    – kirk
    May 30 '18 at 8:13











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041673%2fubuntu-18-04-gnome-session-broken-post-installation-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Usually /etc/alternatives/gdm3.css points to /usr/share/gnome-shell/theme/ubuntu.css. The latter file is located in gnome-shell-common package.

You can reinstall it with:



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


If it does not work you can try to fix the problem by recreating the link manually with



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


And then run



sudo apt-get install -f





share|improve this answer



















  • 2





    Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

    – kirk
    May 30 '18 at 8:13
















0














Usually /etc/alternatives/gdm3.css points to /usr/share/gnome-shell/theme/ubuntu.css. The latter file is located in gnome-shell-common package.

You can reinstall it with:



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


If it does not work you can try to fix the problem by recreating the link manually with



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


And then run



sudo apt-get install -f





share|improve this answer



















  • 2





    Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

    – kirk
    May 30 '18 at 8:13














0












0








0







Usually /etc/alternatives/gdm3.css points to /usr/share/gnome-shell/theme/ubuntu.css. The latter file is located in gnome-shell-common package.

You can reinstall it with:



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


If it does not work you can try to fix the problem by recreating the link manually with



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


And then run



sudo apt-get install -f





share|improve this answer













Usually /etc/alternatives/gdm3.css points to /usr/share/gnome-shell/theme/ubuntu.css. The latter file is located in gnome-shell-common package.

You can reinstall it with:



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


If it does not work you can try to fix the problem by recreating the link manually with



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


And then run



sudo apt-get install -f






share|improve this answer












share|improve this answer



share|improve this answer










answered May 29 '18 at 20:57









N0rbertN0rbert

24.5k852115




24.5k852115








  • 2





    Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

    – kirk
    May 30 '18 at 8:13














  • 2





    Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

    – kirk
    May 30 '18 at 8:13








2




2





Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

– kirk
May 30 '18 at 8:13





Thanks, this worked - I had to delete gdm3.css and recreate the symlink.

– kirk
May 30 '18 at 8:13


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041673%2fubuntu-18-04-gnome-session-broken-post-installation-script%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]