Monday 24 October 2022

Raspberry Pi 400 Bullseye 64-bit - PackageKit Error Timeout was Reached [fixed]

I have upgraded Raspbian to debian bullseye 64bit on my Raspberry Pi 400... and not all of the usualy software was available.  (It's possible this only happens if you have added an extra repo to buster or stretch before updating.)

Running 'Recommended Software' under Preferences I see the Recommended Software window popup and it attempts to load software, but ends with a message like "Error calling StartServiceByName for org.freedesktop.PackageKit - timed out."

Running sudo apt update (or upgrade) I see a single "Error Timeout was Reached" almost every time.

This fixed it (finally):

sudo rm /var/lib/PackageKit/transactions.db // or *.db
sudo systemctl restart packagekit.service
sudo apt install packagekit-tools // if pkcon not installed
sudo pkcon repair

[source from RedHat but it's a bug with PackageKit, which is invoked by apt :

https://bugzilla.redhat.com/show_bug.cgi?id=1188455#c3 ]

I am no longer seeing the Error Timeout on every apt update.. and Recommended Software has finished loading, so I should be able to install some more software - at last...

No comments:

Post a Comment