fix unable to lock the administration directory (/var/lib/dpkg/) is another process using it

How to”Fix” unable to lock the administration directory (/var/lib/dpkg/) is another process using it on Ubuntu 

If you are facing this kind of error “unable to lock the administration directory (/var/lib/dpkg/) is another process using it” on linux Ubuntu and looking for solution to fix it then you can just follow few easy steps to fix it. 
It happens due to some background process running on your Ubuntu OS.  If you can identify that specific installation apt-get installation or if you are not able to find the specific process running on your PC/Laptop / server etc. then we also can use “ps” command to search the process and kill that unknown running process and continue our installation. 
Step to kill unknown “apt process” 
Open the new terminal  then type “ps aux|grep process ID” as shown in snap short attached here. 

I am sure it will be helpful to resolve the “unable to lock the administration directory (/var/lib/dpkg/) is another process using it issue”.

Note:- If in case even after killing all the apt associated process ID its showing same error then remove lock using this command. 

# rm /var/lib/dpkg/lock 

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *