Could not get lock /var/lib/dpkg/lock
when i want to install cairo-dock, i get this error. This is because I am stop the download process while it download package :
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?E: Could not get lock /var/cache/apt/archives/lock – open (11 Resource temporarily unavailable)
E: Unable to lock the download directory
Sometime this error come up when we open synaptic package manager at the same time or synaptic already running. To fix this problem just Close any other package managers
if that doesn’t make effect , do this
rm /var/lib/dpkg/lock
rm /var/cache/apt/archives/lock
After that, you can continue your install any packages










4 Responses to “Could not get lock /var/lib/dpkg/lock”
pagesec1
(1 comments.) on Sep 3, 2009
Nice post, thanks for the info.Comment posted using
Internet Explorer 7.0 on
Windows XP
Reply
dedyisn
(77 comments.) on Sep 8, 2009
Your welcome
Comment posted using
Mozilla Firefox 3.5.3 on
Windows XP
Reply
r-breed
on May 8, 2010
i did this and said yes to remove it and it said:
rm cannot remove /var/lib/dpkg/lock: permission denied
do you know what i can do?Comment posted using
Mozilla Firefox 2.0.0.14 on
Linux
Reply
dedyisn
(77 comments.) on May 24, 2010
it just permission problem, you must be root user to this action
ada sudo in front of your command
sample :
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
If it need password, then input your login password
Mozilla Firefox 3.6.3 on
Windows XP
that’s allComment posted using
Reply