0

I tried to install cowsay using the command:

sudo apt-get install cowsay

I received the following error message:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Arronical
  • 20,241

2 Answers2

1

If another apt-get instance is running in another terminal, you should close it or let it complete the task before running apt-get in another terminal. If that's not the case, remove the lock file in /var/lib/dpkg/ directory with

sudo rm /var/lib/dpkg/lock
muru
  • 207,228
letmutx
  • 135
0

It probably means another apt-get process crashed before completion. Just log out and log in again.