You can try this
Start in text-only mode
Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with (recovery mode)
Press Return and your machine will begin the boot process.
After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.
The PC will start in a terminal.
Run these commands:
Mount partitions in read-write mode
mount -o remount,rw /
mount --all
Update repositories
apt-get update
Install aptitude and deborphan
apt-get install --reinstall aptitude deborphan
Eliminate the components of gnome that are not necessary in lubuntu
aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(lubuntu-desktop))))'
Reinstall lubuntu-desktop
apt-get install --reinstall lubuntu-desktop
Eliminate orphan packages
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
Remove unnecessary packages
apt-get autoremove
Remove downloaded packages
apt-get clean
Restart system
reboot
sudo apt install lubuntu-desktop
and added the Lubuntu desktop to your existing machine, and you want to just remove the GNOME/Ubuntu desktop options at login. It however could also mean you've a dual boot system, and you're asking how to remove the second installed OS; currently it's unclear. What do you mean by "on top of it"? (those two options have very different fixes)ubuntu-mate-desktop
,xubuntu-desktop
andlubuntu-desktop
. I recently needed disk space, and decide a quick fix was to removeubuntu-mate-desktop
(my least used) so for me it was just asudo apt remove ubuntu-mate-desktop
. I of course read the packages that were going to be removed; saw no negative consequences (but would have corrected any if there) & it ran. My MATE/Ubuntu-MATE option is now gone. Is this what you mean?sudo apt remove ubuntu-desktop
will just remove a tiny metapackage designed to pull in all packages deemed essential for the desktop. Even asudo apt autoremove
afterwards will not remove most of the actual packages. Without a list if actually installed packages, you cannot automatically remove an installed desktop granularity.