3

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?

6

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
2
  • I tried the seccond one and Showing this dpkg: warning: while removing lightdm, directory '/etc/lightdm' not empty so not removed – opu 웃 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
3

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.

1

What about

sudo apt-get remove lightdm

I think that should work, isn't it?

1

Do

sudo apt-get remove lightdm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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