Unable to lock the administration directory (/var/lib/dpkg/)
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 ?
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?
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.
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..
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:
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.