Recently, I asked this question on how to solve a login loop on Ubuntu 18.04.1.
My problem seems to be specifically associated with the Ubuntu desktop environment, as I am able to successfully login using the LXDE environment. And so I thought if I could completely uninstall and then reinstall that desktop environment, I might be able to login again.
The problem is, I don't know what exactly my desktop-environment is called, or how to completely remove it. It is the default I have used ever since first installing Ubuntu, but, being a very inexperienced Linux user, I don't know what it's actually called.
Could anyone suggest a way to find out what my desktop-environment is, and how to uninstall/reinstall it?
echo $DESKTOP_SESSIONshould display your current environment. For me it responds "Lubuntu" (which makes sense, I'm logged in and using LXQt). The default GUI/Desktop environment installed with Ubuntu 18.04 (or any release) is found in packageubuntu-desktop(Lubuntu withlubuntu-desktop, Xubuntu usesxubuntu-desktopetc) – guiverc Mar 01 '19 at 05:27sudo apt install --reinstall <package name>and reboot the system. – Kulfy Mar 01 '19 at 05:41ubuntu-desktopenvironment with the commandsudo apt install --reinstall ubuntu-desktop, however, it didn't quite solve my problem. What I am wanting is this: how do you completely remove a desktop environment so I can reinstall it later? Giving the previous command only removed about 10 KBs of data -- the desktop environment still seems to be there. Is there a command to entirely delete it? – Kaleb Mar 02 '19 at 18:30apt removeremoves the package but leaves the conf files allowing re-install, you couldapt purgeto remove more, but would need to start again if you re-install – guiverc Mar 03 '19 at 22:02