Command: sudo apt-get update

 

Getting error

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

 

Solution:

 

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

or

command: sudo fuser -vki /var/lib/apt/lists/lock