0

Its is showing the following error listed below please help.

sudo apt-get update
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 40669 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
Artur Meinild
  • 26,018

1 Answers1

0

That is because there is another apt-get process. Try rebooting and running sudo apt update. Rebooting usually kills the other process. If you are using desktop, then make sure there is no other terminal/tab executing another process. If you're not manually cancelling sudo apt-get update using ^C, it should continue displaying E: Could not get lock /var/lib/apt/lists/lock. It is held by process 40669 (apt-get) every second. If it isn't, then it's another weird error.