How to remove Unity from our Ubuntu 17.10

Ubuntu 17.10

Surely many of you already have Ubuntu 17.10 and with it Gnome as your main desktop. Many will have loved it and they are surely using Gnome but many others will have chosen to continue with Unity or choose an official flavor (I have done the latter).

In any case, we all choose a desk and that means having to eliminate the rest. In this case we are going to tell you how to remove Unity from our Ubuntu 17.10 to stay with Gnome as the default desktop.

First of all, we have to do a backup of our data, just in case. Once we have this, we have to log into Gnome and close all other sessions.

How to remove Unity

When we have this, we open a terminal and type the following:

sudo purge unity-session

This will cause us to remove all Unity related packages. Don't worry, it won't remove it from the repositories, so in extreme case they can be reinstalled.

Now we have to clear the cache, for this in the terminal we write the following:

sudo apt-get autoremove

This will clean up any remaining dependencies or notes from Unity. And we will need to restart the session but before that we have to make sure that the session manager is installed on our computer, for this, from the terminal we write the following:

sudo apt-get install ubuntu-session gdm3

If we already have those packages, Ubuntu will tell us that they are already there, otherwise it will begin to install them. After the installation, we can restart the operating system and we will see how at the start of session only Gnome-Session or Ubuntu-Session will appear. Thus disappearing Unity from our computer.

Personally, I don't like Gnome, but I do recognize that it is good to have a single desktop in our Ubuntu, since several desktops in the end tend to give serious operating problems. Now there is no excuse not to have only Gnome on Ubuntu 17.10 Do not you think?