LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-05-2006, 04:50 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,615

Rep: Reputation: 47
Unable to lock the administration directory (/var/lib/dpkg/)


hi

after apt-get update, I get the following error:
Code:
E: Konnte Lock /var/lib/dpkg/lock nicht bekommen - open (11 Die Ressource ist zur Zeit nicht verfügbar)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
knows someone what's wrong and howto solve this problem ?

greetings
cccc
 
Old 05-05-2006, 05:11 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
That looks just like an error I've seen when I try to install a package using the rpm command as a normal user. Did you perhaps to the same? Or are you running an install program in a different shell?
 
Old 05-05-2006, 06:18 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
what is your distro/release (you could put this in your profile, would help)
after a reboot does it still happen?
if yes what gives ps aux
 
Old 05-05-2006, 09:40 AM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Quote:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I was able to reproduce your error by running Synaptic and leaving it open then moving to the command line and trying to use apt.. you cannot run both at the same time, make sure any other package managers on the system are closed before trying to update or upgrade.
 
Old 04-08-2011, 09:03 PM   #5
mrakhunathan
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Could not get lock /var/lib/dpkg/lock

Hey friends,
just type
sudo bash (or) sudo -s
This makes you the root user and obtain administrator previlages. type “whoami” and check that you will be the root user…now all apt commands work..
 
Old 04-09-2011, 04:47 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, FreeBSD
Posts: 1,313

Rep: Reputation: Disabled
This is some thread necromancy...

If you see that error, either you're not root, or another package manager is running.

Last edited by cynwulf; 04-09-2011 at 04:48 AM.
 
Old 04-09-2011, 04:48 AM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Erm...This thread is going on for five years old!!.
 
1 members found this post helpful.
Old 04-09-2011, 11:20 PM   #8
mrakhunathan
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
If someother package manager is running,try this..

Become root-"sudo bash" and "sudo -s"
then
use "killall -l"
it works...
 
Old 11-12-2011, 01:34 PM   #9
pabloab777
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Probably you had run a other apt-get or dpkg on other shell, or run something like apt-get upgrade & and this lock the database. Try to reboot, but in last case, try:
Code:
sudo fuser -vki /var/lib/dpkg/lock
To find process that lock the file, like apt-get.
 
Old 11-15-2011, 09:09 PM   #10
kimeunice
LQ Newbie
 
Registered: Nov 2011
Location: dasma. cavite
Posts: 1

Rep: Reputation: Disabled
hi i have the same pro.

i tried the killall -l
and this is the message i got HUP INT QUIT ILL TRAP ABRT IOT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM
STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS
UNUSED


what happen???
 
Old 11-15-2011, 10:51 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
I would not recommend at all to kill the package management system, if it is currently doing its job of installing/removing/upgrading packages this can lead to a corrupted system.
Check the output of
Code:
ps aux
for instances of apt (or other package managers, like Synaptic, Software Center, Updade Manager) running, if you find one then think about why it is running. May be the update manager scanning for new updates? Software Center installing something?
Also make sure to start apt as root (with sudo on Ubuntu, su -c on Debian).
 
  


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
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 16 02-15-2012 12:28 PM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 17 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
warning: cannot get exclusive lock on /var/lib/rpm/Packages Raafi Fedora 3 03-06-2005 03:45 AM
error: cannot get exclusive lock on /var/lib/rpm/Packages orly Linux - Software 2 09-06-2004 07:13 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration