Problem:
An Ubuntu user often comes across an error (shown below the paragraph) while try to install an application using apt-get in the terminal, using synaptic or Ubuntu Software Center. This simple error may trouble a beginner Ubuntu User. The error looks something like this:
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?
Reason:
The reason is quite obviously stated in the error itself: is another process using it? Which means that the administrative directory (/var/lib/dpkg) responsible for the Debian Package Installation is already used by another process i.e. either of apt-get, synaptic package manager, update manager or Ubuntu Software Center is installing some other software.
Solution:
Well, solution is as simple as it can be. Wait for the other program to finish installation or cancel the previous one and start a new one.
sudo rm /var/lib/apt/lists/lock
Hope that helps. Questions and suggestions are welcome. Do subscribe to get more Linux troubleshoot and Tech articles.