E: unable to lock the administration directory (/var/lib/dpkg/) is another process using it

then we must want to clear the locked directories, here have some commands

#sudo rm /var/lib/apt/lists/lock

#sudo rm /var/cache/apt/archives/lock
#sudo rm /var/lib/dpkg/lock

-----------
another method kill the process manually

#ps aux | grep apt
..
.
.
#kill -9 Process_number(tasknumber)

--------------

ps -e | grep -e apt -e adept | grep -v grep

--------------

Post a Comment

0 Comments