0

I just updated my elementary OS install, and now Xorg does not work. I am able to make it into the login screen, but when trying to sign in it goes back to the sign-in form. So I decided to try Control+Alt+F1 to log in to the terminal, which I can. But when trying to start X, it says:

xinit: server error
Xauth: timeout in locking authority file /home/pookito/.Xauthority

This file seems to me a binary file or something. When I run ls -l .Xauthority, I can see that root can read and write to it, but that's it. If I try to do cat . Xauthority, something about magic-cookie in all caps comes up.

screenshot

  • 1
    Try stopping lightdm(the login screen) with sudo systemctl stop lightdm from tty1, then sudo su to login as root and delete the .Xauthority file with rm -f ./.Xauthority and then reboot. Looking forward to your reply. – Атанас Минков Feb 7 '18 at 11:38
  • 1
    Dude, you are my brother. Thank you for the quick reply. It is working now. Thanks. – Pookito Feb 7 '18 at 14:51
  • 1
    Glad it worked. Please vote it as a solution, so others can easily fix a common issue. Cheers! – Атанас Минков Feb 8 '18 at 16:31
2

Stop lightdm (the login screen) with sudo systemctl stop lightdm from tty1; then run sudo su to login as root; then delete the .Xauthority file with rm -f ./.Xauthority, and then reboot.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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