Whenever I try a command, I get an error saying:
Unable to get exclusive lock
Also apt-get is busy
, but I am not even running any other application.
Whenever I try a command, I get an error saying:
Unable to get exclusive lock
Also apt-get is busy
, but I am not even running any other application.
You probably aborted an install at some time or another. The Following will release any lock you have. Just be sure you don't have software center open or are installing anything.
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
sudo fuser -cuk /var/cache/apt/archives/lock; sudo rm -f /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock;sudo dpkg --configure -a
apt-get
could be busy downloading updates in the background, and will prevent you from doing any other package management action while it is doing so.
You could kill it and then try to recover the package database manually, using the following command. If any of the commands fail and reports errors - stop and read what they say and see if you can understand what to do - they usually give instructions on how to recover from an error:
sudo killall apt-get
sudo dpkg --configure -a
sudo apt-get install -f