Ubuntu – Failed update to 18.04, no GNOME or any desktop


I just updated to 18.04 from 16.04 and to 16.04 to 14.04 before that.

Anyway the 18.04 failed with an error saying something like gnome not installed and desktop depends on gnome. And it said it was going to recover, however it did nothing. After some time I restarted and the system. It came up with the desktop background but nothing else.

With Ctrl-Alt-F1 I am trying any commands I found without success.

Trying to install gnome I get missing dependencies. When trying to install gnome-shell and have a dependency for libmutter-2-0.

I installed libmutter-2-0 but gnome-shell still reports it as a missing dependency.

I also don't have gdm3 or seemingly any other parts of gnome.

I have no idea what I am doing, I have been searching and running commands for installing anything I can find, but so far no success.

I would like to get some gui working or go back to 16.04 if possible.

Edit 1
After N0rbert's advice:

sudo apt-get update
sudo apt-get install ubuntu-desktop

Did something in the sense that I can see my a desktop, but I only see a login button the the account, which instantly fails even before I have a chance to enter my password.
Here are some screenshots:
login failed after click

Crash screen
In previous version I had it not require a password to login so I am surprised it is asking for one. Is it possible I just need to reset the password or authentication system?

Best Answer

  • The following list of actions solved the problem:

    sudo apt-get update
    sudo apt-get install ubuntu-desktop
    sudo apt-get install gnome-core lightdm
    sudo dpkg-reconfigure lightdm # select LightDM

    then OP successfully logged in to the session.

  • Related Question