When i run the command "sudo apt update" or "sudo apt upgrade" , it will give below error -
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?
I will fix this problem following just step:
sudo killall apt apt-get
If above command is not working. Run in terminal: (Note that this can seriously break your system.)
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock*
Then reconfig the packages. Run the terminal again and past below command
sudo dpkg --configure -a
sudo apt update
I hope, it will fix your problem.
Tags : Ubuntu Ubuntu 18.04