Fix “could not get lock /var/lib/dpkg/lock” Error Once and For All (Ubuntu)

LinuxBabe
1 min readNov 21, 2018

--

The “could not get lock /var/lib/dpkg/lock” error is pretty common in Debian/Ubuntu running in virtual machine. Existing workarounds on the Internet (i.e. kill the apt-get process, or remove the lock file) are not ideal, because they can damage your system and you will face the same error again in the future.

Fix “could not get lock /var/lib/dpkg/lock” Error Once and For All

I will tell you the real cause of this error and show you how to fix it once and for all. The error message is as follows:

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?

Read full story here: https://www.linuxbabe.com/ubuntu/upgrade-could-not-get-lock-var-lib-dpkg-lock

--

--

No responses yet