PDA

View Full Version : [ubuntu] Unable to lock Administration directory



reaxas
June 9th, 2012, 01:47 AM
I've seen other people with this problem, but I'm still not sure how to solve it.

I'm trying to install User-Theme GNOME Shell Extension and I keep getting the error:
" 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've tried to kill the program and such and nothing has worked out yet, if anyone can help me, it'll be much appreciated!

Thanks in advance!

Old_Grey_Wolf
June 9th, 2012, 02:40 PM
You need to remove the lock file. Enter these commands to do that
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a

reaxas
June 10th, 2012, 03:51 PM
You need to remove the lock file. Enter these commands to do that
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a

It worked like a charm! Thank you so much!

Old_Grey_Wolf
June 10th, 2012, 05:19 PM
Please mark this thread as solved.

If you do not know how to do that, near the top of the webpage (scroll up) there is a menu "Thread Tools". Select "Mark this thread as solved". It lets other people searching the forums know that this had a working solution and they don't need to provide additional help.

Thank you.