Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to remove LXDE from my 12.04 system.
I've tried running the following commands (as root from a terminal):

apt-get remove lxde
apt-get purge lxde
apt-get autoremove

I've also tried a rather lengthy command that was linked to from another question.

However, when I log in, LXDE is still presented as an environment choice, and it still functions perfectly well, as if I've done nothing.

I ran the above commands again, but got the following message:

package . . . is not installed, so not removed.

So, where do I go from here, short of re-installing Ubuntu and all my programs?

share|improve this question
LXDE is a metapackage and you need to know the name of packages installed during first installation to remove them. take a look to this similar question – Anwar Shah Sep 24 '12 at 17:23
Can you post the output of the "lengthy command", perhaps something didn't work there. Have you installed lxde or lubuntu-desktop? – mikewhatever Sep 24 '12 at 17:50
@Anwar I removed lxde-core and tried removing all the dependencies given by the original install (used apt-get install -s lxde to get list). still though, when I log in, LXDE still shows up (AND FUNCTIONS) as an environment choice in the menu. – Jeremy Lunsford Sep 26 '12 at 17:33

What you can do is, to first, check the dependency of the lxde.
You can do this using the apt-cache command.

sudo apt-cache show lxde

This enables you to remove dependency packages.
So far, this has worked for me!

share|improve this answer

I don't know if you got this solved by now or not, but I think your problem is lxde-core is itself a meta package. To reverse

apt-get install lxde

you need to

apt-get remove lxde gpicview leafpad lxappearance lxde-core lxde-common lxinput lxmusic lxpanel lxsession lxsession-edit lxshortcut lxterminal openbox-themes openbox pcmanfm xarchiver xscreensaver
apt-get autoremove
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.