LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2006, 05:53 AM   #1
canegames
Member
 
Registered: Mar 2006
Posts: 72

Rep: Reputation: 15
Could not open lock file in Debian Sarge3.1


Hi,

When installing, updating, and removing software on Debian Sarge 3.1 I recieve this error. How do O fix this and what cuases it? Thanks

[Console Output] (named example)

apt-get install bind9
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
Old 04-01-2006, 09:45 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Are you root?
 
Old 04-01-2006, 02:48 PM   #3
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
Yes I am and Yes that server asks me that very anoying I must say.
 
Old 04-01-2006, 03:46 PM   #4
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
What should I do to fix this problem? Thanks.
 
Old 04-02-2006, 12:16 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
What did you try already?
Did you checked if the '/var/lib/dpkg/' exists and if '/var/lib/dpkg/lock'
exists?
When apt-get is not running (and the dpkg cache is not locked),
'/var/lib/dpkg/lock' anyway as an empty file.
 
Old 04-02-2006, 06:06 PM   #6
canegames
Member
 
Registered: Mar 2006
Posts: 72

Original Poster
Rep: Reputation: 15
thanks I'll look for that I think I have to reinstall apt. Thanks
 
  


Reply



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 24 04-12-2019 10:42 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 05:30 PM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 03:42 PM
Debian kernels: "warning: can't open /etc/mtab: No such file or directory" brurien Debian 1 10-22-2003 06:09 PM
Debian Sparc busmouse lock up rascal Linux - Software 0 10-18-2002 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:24 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
Open Source Consulting | Domain Registration