One of the most common bugs in Ubuntu is that suddenly, after logging in to our user, the desk of Ubuntu does not load and we can only see the wallpaper but we can’t do anything as well as we can appreciate in the top image of the post. This error usually appears when we tried to upgrade Ubuntu and, as such, the upgrade is halved or cannot be performed completely.
It may seem like a difficult mistake to fix, but nothing could be further from the truth reinstalling the graphical environment of Ubuntu and most importantly, without having to resort to formatting and therefore the loss of all our files.
Reinstalling graphical environment
per reinstall the graphical environment from Ubuntu we need to have access to a terminal, but obviously we can’t because the session doesn’t load. The solution is simple. When we are at the point where the desktop does not load, we can enter the terminal mode, pressing the keys ctrl + alt + F2. Once inside, the system will ask us to enter username and password. Once we have logged in, we can prepare to reinstall the graphical environment.
The first thing we need to do is enter superuser mode through:
The next step is to configure all the Ubuntu packages that have been unpacked But not configured. To do this we run the following line:
dpkg -configure -a
Then, we reinstalled packages previously configured with:
apt-get -f install
the we update with the following two commands:
And then we reinstall the ubuntu-desktop packageThat is, we reinstall the graphical environment.
apt-get install -reinstall ubuntu-desktop
Eliminate us unused packages i we deleted the download files, Respectively with the following orders:
to finish we restart the system from the running terminal:
Once the system is restarted, Ubuntu will reload the desktop and therefore we can use our system again as if nothing had happened.