Unable to acquire dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it.
If you’re facing issue in upgrading the Ubuntu System with Error like ” Unable to acquire dpkg “, It can be as of many reason. To fix this issue, follow below steps.
Check Out : Install Skype In Ubuntu
you can get this error because there was already a process running and might be because of update command.
Try to Upgrade The System
sudo apt-get upgrade
Step 1 : Find and kill all apt process which are running.
ps -A | grep apt
Now kill the process using the below commands
kill -9 processnumber
kill -9 SIGKILL processnumber
Step 2 : Check the location of lock-frontend
When you run apt-get or apt command, a lock file can be created under these directories, /var/lib/dpkg/, /var/cache/apt/archives/ and /var/lib/apt/lists.
Step 3 : Remove the lock-frontend
sudo rm /var/lib/dpkg/lock-frontend
sudo rm -rf /var/lib/apt/lists/lock
And also remove this file too.
sudo rm /var/cache/apt/archives/lock
Step 4 : Verify
As you can see now I’m able to upgrade the system, Now run this command to build up the dpkg packages.
sudo dpkg –configure -a
Check Out : Install Microsoft Mono In Ubuntu