Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Let's see, I cannot log in in Lubuntu 12.04. On the shell I get when typing startx:

  _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener()  failed
  _XSERVTransMakeA11C0TSServerListeners: server already running

  Fatal server error:
  Cannot establich any listening sockets - Make sure an X server isn't already running

 ...
 Please also check the log file at "/var/log/Xorg.0.log" for additional information.  
 ddxSigGiveUp: Closing log
 Server terminated with error (1). CLosing log file

 Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
 xinit: unable to connect to X server: Resource temporarily unavailable
 xinit: server error  

Before I had only read-right on the file-system with sudo autoremove I got my write-rights back. I removed the .Xauthority* files in /home/username. Still cannot login back

share|improve this question

2 Answers

up vote 3 down vote accepted

I found a solution for me: Well, I hope someone can use my answer:

I changed my password, reinstalled xserver-xorg by typing: sudo apt-get install --reinstall xorg

After a reboot it worked for me. Notice: I removed the .XAuthority files in /home/username by: sudo rm /home/username/.XAuthority*

to get a shell try Strg-Alt-F1 when you turn on your computer. I actually got my write-rights back by using clear in recovery mode.

Hopefully, this answer can help others as well.

share|improve this answer

Did you "Make sure an X server isn't already running" by trying something like startx -- :1? Maybe a [g|x|light]dm process was already running and blocking DISPLAY :0.

share|improve this answer
I cannot tell you really whether that was a problem... Now everything is fine.. I put the solution in the edit, because I couldn't have answered it myself, since I'm a newbie in the forum. – Matthias Jun 15 '12 at 11:57

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.