Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

Hello,

To solve this issue when trying to apt-get your Ubuntu Linux use these commands:

Option 1:

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

Maybe it is also needed to:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

Option 2:

ps aux | grep apt
sudo kill processId

Regards,
Rubén

Show Comments