I'm new to Linux and installed the newest elementary OS. Then I installed some packages and I was told to restart my computer. But when I booted it up again, it stuck at the logo. Then I pressed Windows+Tab, I guess, and this screen appeared. What am I supposed to do? Please help me guys.

Here is the picture: https://ibb.co/jsDe3F

  • What does systemctl status lightdm.service say?
    – lemonslice
    Commented May 24, 2017 at 6:37
  • How can I type this in on the black screen?
    – Yastamyar
    Commented May 24, 2017 at 15:26
  • you can go into recovery mode, on the grub menu select first 'advanced options for Elemetnary os', then the kernel on top which has (recovery mode) following the name. After the menu appears you can select the root shell below and execute the command listed above.
    – Bo rislav
    Commented Dec 8, 2019 at 0:37

1 Answer 1


Check if you can boot into recovery mode (selecteable in grub menu). This will launch the system in text-only mode. Try to login. Once loged in, reinstall the lightdm packages with:

sudo apt-get purge lightdm (this will remove it)

sudo apt-get autoremove (this will autoremove leftovers)

sudo apt-get install lightdm (this will install it again)

Reboot, cross your fingers and hope you will se your default login screen again.

I have the same problem with my Elementary, but I cannot login to recovery mode and have to find another way to reinstall the lightdm.

  • There is no login into recovery mode but if he/she do not enable network before purging lightdm following your instructions will lead to a system without display manager!
    – Bo rislav
    Commented Dec 8, 2019 at 0:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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