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

If you being a root or root privileged user who tried to install and interrupt the installation in mid of it, then you’ll see this error when you try to resume the installation again. But below message will appear as:

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?

So what is the solution to this error, and how to fix this issue?

The solution is very simple, either wait for some time (like 10 minutes) and let the process die itself or reboot the system if you can bear some downtime (in a server environment). Or if you cannot hold the system for like 10~20 minutes or cannot reboot the system then you can kill the process itself.

After this, issue should get fixed. But in some cases, you need to further manually configure dpkg to work.

The following issue may appear in case you try to upgrade a package.

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

The solution here is in the above error, just use the specified command.

dpkg --configure -a

Now any interrupted installation will continue from there, and let the installation complete successfully this time.

Published by AtulHost

Creator of AtulHost. An ardent Linux user. Comes from a business management background. Loves to do research on modern business insights and enterprise solutions like career, education, finance, investments ideas, marketing strategies, and productivity skills; technological trends like automation, artificial intelligence, cloud and edge computing, computer hardware and networking, data science, and the internet of things.

Join the discussion

Required fields are asterisked and email address will not be shared.

Ensure a friendly atmosphere to our members and visitors. Encourage the freedom of expression and exchange of information. Comments that are off-topic will be deleted.