Linux Lite Forums

Software - Support => Updates => Topic started by: ralphshinevar on June 10, 2023, 05:02:40 PM

Title: Updates Failed - Could not get lock
Post by: ralphshinevar on June 10, 2023, 05:02:40 PM
===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.linuxliteos.com/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/
Title: Re: Updates Failed - Could not get lock
Post by: stevef on June 11, 2023, 01:48:28 AM
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.
Title: Re: Updates Failed - Could not get lock
Post by: ralphshinevar on June 15, 2023, 12:27:11 PM
Waited a few days.  Still not working.   :imsorry
Title: Re: Updates Failed - Could not get lock
Post by: stevef on June 15, 2023, 01:33:06 PM
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?
Title: Re: Updates Failed - Could not get lock
Post by: ralphshinevar on June 15, 2023, 02:06:00 PM
===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.linuxliteos.com/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/
Title: Re: Updates Failed - Could not get lock
Post by: ralphshinevar on June 15, 2023, 02:11:00 PM
kill -9 1473 worked updates are going thanks.   :wave