How can I remove Gnome Desktop Environment without messing Unity DE? (Ubuntu 16.04)

by Aldo Dadone   Last Updated January 14, 2018 14:02 PM

I need to get rid of the GNOME Desktop Environment which has been installed by default when I updated my pc from 15.10 to 16.04.

After a while, I found myself not only with GNOME DE, but also with Cinnamon alongside (in the login screen, I could choose at least five or six DE!)

Now I am using Unity, and I'm happy with that, and I successfully uninstalled Cinnamon, but now I'm afraid that after uninstalling GNOME I will mess up the Unity DE, since I see many packages running in unity with the packagename starting with gnome-... Would someone mind to help me? Thx in advance



Answers 3


To be honest it would be better to back up for files and all config files in the Home folder and do a fresh install of Ubunutu.

If not try this:

Start by running this command:

Uninstall just ubuntu-gnome-desktop

sudo apt-get remove ubuntu-gnome-desktop
sudo apt-get remove gnome-shell 

This will remove just the ubuntu-gnome-desktop package itself.

Uninstall ubuntu-gnome-desktop and it's dependencies

sudo apt-get remove --auto-remove ubuntu-gnome-desktop

This will remove the ubuntu-gnome-desktop package and any other dependant packages which are no longer needed.

Purging your config/data too

If you also want to delete your local/config files for ubuntu-gnome-desktop then this will work.

Caution! Purged config/data can not be restored by reinstalling the package.

sudo apt-get purge ubuntu-gnome-desktop

Or similarly, like this ubuntu-gnome-desktop

sudo apt-get purge --auto-remove ubuntu-gnome-desktop

Then run:

sudo apt-get autoremove 

to remove extra packages and dependencies no longer needed on your system.

You might (or might not, depending on if gdm was removed already) need to use these commands to change your login screen back to Unity's default (which is lightDM) run

sudo dpkg-reconfigure gdm

Hit enter at the prompt and then select lightdm from the options. After that you can remove gdm with

sudo apt-get remove gdm  

Finally run:

sudo apt-get install ubuntu-desktop
sudo apt-get install unity

INFO HERE and HERE

pst007x
pst007x
May 04, 2016 16:04 PM

Reboot your system and press Control-Alt-F1 to get to a text terminal. Log in there and type the following:

sudo apt-get install ubuntu-desktop

sudo apt-get install --reinstall lightdm

Sobhon Pani
Sobhon Pani
May 04, 2016 22:53 PM

when is ubuntu 17.10 going to be continued again

ak lenovo laptop
ak lenovo laptop
January 14, 2018 13:26 PM

Related Questions


Can I remove Unity now and how?

Updated May 11, 2017 00:02 AM

Install Kubuntu over Ubuntu 15.04

Updated May 18, 2015 23:01 PM

Uninstall desktop environments

Updated December 15, 2015 10:01 AM

Remove ubuntu-gnome-desktop?

Updated October 06, 2015 14:01 PM

How to set XDG_CURRENT_DESKTOP to default in ubntu 16?

Updated January 21, 2018 05:02 AM