Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 removed Unity from my computer. But still lightdm is showing when I typed sudo dpkg-reconfigure lightdm. I want to remove it. What can I do?

share|improve this question
up vote 3 down vote accepted

To remove an application in Ubuntu you can type in a terminal:

sudo apt-get remove lightdm

or remove it with all its configuration files:

sudo apt-get purge lightdm
share|improve this answer
I tried the seccond one and Showing this dpkg: warning: while removing lightdm, directory '/etc/lightdm' not empty so not removed – Scotia 웃 Dec 6 '13 at 6:58
There are another packages using this folder. try with sudo apt-get purge lightdm-gtk-greeter first. – chaos Dec 6 '13 at 7:05

If you do a

sudo apt-get remove lightdm

instead leaving out the purge, if anything does go wrong and you cannot log into a graphical session you can always drop to a terminal and restore LightDM.

After the remove if everything works properly you can then purge the config files ..

If you will do -

sudo apt-get purge lightdm


sudo aptitude purge lightdm

then you cant restore it back without installing.

share|improve this answer

What about

sudo apt-get remove lightdm

I think that should work, isn't it?

share|improve this answer


sudo apt-get remove lightdm
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.