I have just booted my clean Ubuntu 18.04 LTS VM and tried to install some application with sudo apt install
.
But got error message:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
What process created the /var/lib/dpkg/lock-frontend file in Ubuntu?
How to gently stop it and take manual control on APT?
As was recommended in comments - I have checked the owner of the file
So this file was created by
/usr/bin/unattended-upgrade
fromunattended-upgrades
package. I can kill it with:and take control with
as I forgot to purge it on this VM.
Note: do not purge unattended upgrades on your system if unsure. It needs some time to finish (depends on internet connection speed and disk speed) and then you can use APT as usual.