dpkg: error: dpkg frontend is locked by another process
I am getting the following error on my terminal. Can some one please help?
Let all the ongoing processes/installations/updates to complete, retry once all the installation/updates get completed. It will work.
If you've not started any installation/updates then try the following method.
Use the following command in the terminal, it will give you PID
sudo lsof /var/lib/dpkg/lock-frontend
then copy the value of PID and execute the following command with adding your copied PID in place of
sudo kill -9 <PID>