How to fix Unable to lock the administration directory (/var/lib/dpkg/) error in Linux

Some of you may experience this error in your life if you are using linux .it happens when previous installation fails , here is the screenshot which is happened in my Linux Distro

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?
 its very easy to fix this error just type following commands in your terminal

sudo rm /var/lib/dpkg/lock  

this will delete the "lock" directory in /var/lib/dpkg/

after that you can install what ever you want

Comments

Popular posts from this blog

Enable & Disable HP Dynamic Smart Array B120i & B320i Controllers

HP SPP(Service Pack for Proliant) "2014.09" Released

How to upgrade your old Airtel sim to 4G