[Ilugc] Error in updating/installing a package

  • From: thescriptdevil@xxxxxxxxx (Ashok Gautham)
  • Date: Thu, 15 Dec 2011 22:57:32 +0530

On Thu, Dec 15, 2011 at 10:17:33PM +0530, Shrinivasan T wrote:

Check that the file /var/lib/apt/lists/lock is there and owned by root.

if not create an empty file by the following command.

touch /var/lib/apt/lists/lock

then, run sudo apt-get update.


I am pretty sure the opposite should be done. The lock file is created
by apt so that no other concurrent process runs. Remove the lock file
if it exists and retry.

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

However, do so IF AND ONLY IF you are sure that there is not other
instance of apt or synaptic or any such package-manager running. Else
all you will manage to do is get the system in an inconsistent state.

Other related posts: