Unable to lock the administration directory (/var/lib/dpkg/)
DebianThis forum is for the discussion of Debian Linux.
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.
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.
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
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
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).