LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2014, 06:12 PM   #1
matt00
LQ Newbie
 
Registered: Aug 2009
Location: Western New York
Distribution: Mint 16 on my main box, Pepermint & EasyPeasy on an Acer Netbook.
Posts: 7

Rep: Reputation: 0
Getting this error message: Could not create lock file in /tmp/.tX0-lock


I had problems with my HP desktop machine last night while running Mint 16. The problems resulted in me being forced to do a hard-power button shut down of the machine. When I tried to get back on I got the splash screen and the login screen. Logging in takes me to a black window where only the mouse cursor is visible.

Alt+ctrl+f2 takes me into the terminal. Running "Startx" brings up the following error message:

(EE)
Fatal server error:
(EE) Could not create lock file in /tmp/.tX0-lock


xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error
xauth error in locking authority file /root/.Xauthority

I have tried to uninstall, reinstall and reconfigure xorg but nothing is working.

Any suggestions?
 
Old 02-21-2014, 06:56 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
1) you have a corrupted system... but I'm not sure where the corruption is. One possibility is to "rm -f /tmp/.X*" Be careful when you type this...

This is best done in single user mode, then resume the boot (just use control-d). This may correct the problems.

2) startx by default tries to create display :0.0, this is also the display created by the login - you can't do both. You can try "startx -- -display :1.0", but with some of the other corruption you have (the desktop thing) it may not work any better.
 
Old 02-21-2014, 08:15 PM   #3
matt00
LQ Newbie
 
Registered: Aug 2009
Location: Western New York
Distribution: Mint 16 on my main box, Pepermint & EasyPeasy on an Acer Netbook.
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jpollard View Post
1) you have a corrupted system... but I'm not sure where the corruption is. One possibility is to "rm -f /tmp/.X*" Be careful when you type this...

This is best done in single user mode, then resume the boot (just use control-d). This may correct the problems.

2) startx by default tries to create display :0.0, this is also the display created by the login - you can't do both. You can try "startx -- -display :1.0", but with some of the other corruption you have (the desktop thing) it may not work any better.
Thanks. I'll give your suggestion a try but have an idea I'll be doing a fresh install and saying goodbye to all my programs. Perhaps I'll go back to Mint 13, at least I knew that was working.
 
Old 08-21-2015, 12:51 PM   #4
tockati
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Smile Same Error on Debian8

I have the same Errore on Debian8, the solution unfortunatly not work by me.

I give her my solution:

Code:
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
and then:

Code:
startx
remove the disque space for exemple remove files for the basket.


sory for my bad English

Last edited by tockati; 08-21-2015 at 12:52 PM. Reason: error
 
Old 08-21-2015, 01:06 PM   #5
fatmac
Senior Member
 
Registered: Sep 2011
Location: Surrey/Hants Border, UK
Distribution: BSD & Linux - As long as they are Lightweight
Posts: 1,491

Rep: Reputation: Disabled
Quote:
Fatal server error:
(EE) Could not create lock file in /tmp/.tX0-lock
It can't create it because it still exists from your previous session.
Check for & delete that file & you should be able to start X again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 12:26 PM
[SOLVED] Can't read lock file tmp .x0-lock xinit: stale nfs file handle everal Slackware 2 10-31-2011 08:11 AM
Fedora 8 and NoMachine "Could not create lock file in /tmp/.tX1002-lock" ln3wb13 Linux - Software 3 05-17-2008 02:31 PM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 04:42 PM
can't create lock file? Class Zero Linux - Newbie 3 01-30-2002 06:24 AM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration