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.

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

4 Answers 4

up vote 4 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
    
Worked for me as well. I'd spent the last hour removing Xauthority files and getting rid of xinitrc and reinstalling xorg and rebooting, but somehow doing it in this sequence worked. –  Anubhav C Oct 15 '13 at 15:37

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

I had the same problem, but after 2 hours of search I ended up with x.org FAQ messages page, in that page explained to deal with these two errors like each others: 1 - "Server is already active for display 0" 2 - "Cannot establish any listening sockets..." It seems that X server is running, but you cannot just type startx -- :1 and start a new one, you should remove these two files:

/home/username/.XAuthority*

/opt/.X0-lock

and then start new X server on another display:

startx --:1

and then done! my screen back! I just tried to help here, for more information, this is the link that I found on www.x.org http://www.x.org/wiki/FAQErrorMessages/#index5h2

share|improve this answer

I get similar message to run

Xorg -configure

You test free space disk:

df -Th

For my case was this and if it has 100% You can get free space disk width

apt-get clean
share|improve this answer
2  
It isn't very clear how this is an answer. Could you clarify that bit? Thanks. –  Seth Jul 31 at 21:19

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.