Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-12-2004, 02:39 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 25

Rep: Reputation: 15
Unhappy Can't read lock file /tmp/.X0-lock

I just installed redhat 7.1 (my first time installing Linux). After installing, Linux froze on me and after a restart, I am unable to get X running.

The error I get is the error in the subject:

Can't read lock file /tmp/.X0-lock

I tried removing the file but it won't let me.

Upon reboot, there is a message that says:" rm: cannot remove /tmp/.x0-lock': Operation not permitted."

... Then, "I cannot start teh X server. It is likely that it is not set up correctly. I view the output and it repeats the error with the lock file.

Any suggestions would be appreciated...
Old 07-12-2004, 08:46 PM   #2
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
are you trying to remove the lock file with root?
Old 07-13-2004, 09:05 AM   #3
LQ Newbie
Registered: Jul 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Yes, I tried to remove the file from the root...

I tried reinstalling and now I get an error on disk 3 of the redhat installation:

the package tetex-xdvi-1.0.7-66 cannot be opened. This is due to a missing file or perhaps a corrupt package. If you are installing from CD media this usually means the CD media is corrupt or the CD drive is unable to read the media.

I am really stuck now...

Last edited by squinn; 07-13-2004 at 12:51 PM.
Old 07-13-2004, 04:42 PM   #4
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
Well you are not so stuck as you may thing. You can install red hat if the first cd works.

Second you are way to fast at reinstalling. The file you could not remove can only be deleted by the superuser (administator) wich is called root under GNU/Linux (because the username is root). Make sure you are looked in as root. now if you cant remove the file as root, some program is looking it. With good reson as it is a log file.

Why are you trying to install and old version of Red Hat? you most likely want fedore core 1 or 2 or at least Red Hat 9 (the last version before they decided to make on for enterpriess and one for personal use (note this is just the recomandation, there is nothing stopping you from useing fedore core in your company)

Last Wellcome to the free world.


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 16 02-15-2012 01:28 PM
can't read lock file spooge Slackware 7 12-01-2005 11:25 PM
Sarge /tmp/.X0-lock suguru Debian 0 10-11-2004 05:10 PM
removal of /tmp/.X0-lock nifflerX Linux - Security 2 04-09-2004 12:04 PM
remove /tmp/.X0-lock ??? ragates Linux - Newbie 1 09-22-2003 07:36 AM

All times are GMT -5. The time now is 07:14 PM.

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