LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Unable to lock the administration directory (/var/lib/dpkg/) (https://www.linuxquestions.org/questions/debian-26/unable-to-lock-the-administration-directory-var-lib-dpkg-441827/)

cccc 05-05-2006 04:50 AM

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

jschiwal 05-05-2006 05:11 AM

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?

nx5000 05-05-2006 06:18 AM

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

farslayer 05-05-2006 09:40 AM

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.

mrakhunathan 04-08-2011 09:03 PM

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..

cynwulf 04-09-2011 04:47 AM

This is some thread necromancy...

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

the trooper 04-09-2011 04:48 AM

Erm...This thread is going on for five years old!!.

mrakhunathan 04-09-2011 11:20 PM

If someother package manager is running,try this..
 
Become root-"sudo bash" and "sudo -s"
then
use "killall -l"
it works...

pabloab777 11-12-2011 01:34 PM

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.

kimeunice 11-15-2011 09:09 PM

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???

TobiSGD 11-15-2011 10:51 PM

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).

(in)finiteferret 12-05-2017 08:33 PM

works now
 
@cynwulf thanks sudo bash allowed me to download with apt install. I never would have figured that out, Linux is a giant maze.


All times are GMT -5. The time now is 04:47 AM.