Apt: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
Jump to navigation Jump to search
When installing a package, you might encounter an error:
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?
Resolve this by removing lock files:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock