Linux Lite Forums
Updates Failed - Could not get lock - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Updates (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=46)
+--- Thread: Updates Failed - Could not get lock (/showthread.php?tid=8813)



Updates Failed - Could not get lock - ralphshinevar - 06-10-2023

===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.freecinema2022.gq/forums/ and paste the log below into the Software - Support - Updates section for assistance.

============ Log ===========

Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1473 (packagekitd)
E: Unable to lock directory /var/lib/apt/lists/



Re: Updates Failed - Could not get lock - stevef - 06-11-2023

That message is usually triggered when an update process is already active when a second update process is initiated.
In this case, something called packagekitd has locked the update resources which is preventing another update starting.

I suspect packagekitd is a part of an automated task running in the background, if so you just need to wait for it to finish.


Re: Updates Failed - Could not get lock - ralphshinevar - 06-15-2023

Waited a few days.  Still not working.  :imsorry


Re: Updates Failed - Could not get lock - stevef - 06-15-2023

If it is persisting even after waiting an hour or so and a reboot and a wait doesn't fix it, it is possible a previous update may have not finished correctly and is holding the lock file.

Please can you post the error message you are getting now?



Re: Updates Failed - Could not get lock - ralphshinevar - 06-15-2023

===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.freecinema2022.gq/forums/ and paste the log below into the Software - Support - Updates section for assistance.

============ Log ===========

Reading package lists...
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1473 (packagekitd)
E: Unable to lock directory /var/lib/apt/lists/



Re: Updates Failed - Could not get lock - ralphshinevar - 06-15-2023

kill -9 1473 worked updates are going thanks.  :wave