Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

4 Answers 4

up vote 2 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
2  
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

or

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

Do

sudo apt-get remove lightdm
share|improve this answer

Your Answer

 
discard

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.