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.
Leave a Reply