2019-06-02 | GNU/Linux | Dpkg Lock
I run into this quite a bit, particularly since I am running only from the local repo. When I took the snapshot of the hard disk, I think that it might have been trying to update. If you see this 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?
Make sure that you don’t have any package updates running. Look at the logs, here:
tail -n 20 /var/log/apt/history.log
If they are, then stop them or wait. If that still doesn’t clear the lock, you can simply remove it by using this command:
sudo rm /var/lib/dpkg/lockerrors