If you want to upgrade to an earlier version of Ubuntu 17.10 or 18.04 (i.e. the Unity desktop remains installed). Here’s how to remove the Unity environment from Ubuntu 17.10 or 18.04
Unity was the default system environment before the arrival of Ubuntu 17.10. Now it has been replaced by GNOME Shell.
If you want to upgrade the previous version of Ubuntu. You can follow this tutorial for uninstalling the Unity desktop on Ubuntu 17.10 or 18.04.
Follow the steps to remove Unity environment from Ubuntu 17.10 or 18.04
- If you are using Unity Environment, quit the session and log in to the Ubuntu or GNOME Vanilla session
- Then open a terminal
- Enter below command to remove Unity. The terminal will list a series of packages and dependencies that will be removed along with it. Check this list carefully to make sure you are not missing out on an application or package that you trust. When you are ready to continue, type ‘y’ and press enter
sudo apt purge unity-session
- This step is optional. If the above command does not work. It means that the Unity environment has been updated to newer packages. To remove these packages, use the below command
sudo apt autoremove
- After that, if you want to verify any residue left behind by running the below command. You can check the list carefully for anything you want to use
sudo apt install ubuntu-unity-desktop -y
- Finally, if you want to make sure that GDM3 and the Ubuntu session are still installed
sudo apt install ubuntu-session gdm3The Unity environment has really been uninstalled after following the above steps and you can use Ubuntu and its new interface without worrying about it anymore.