Description of problem:
PackageKit fails to check for updates with the following error:
Fatal error: Error when getting information for file “/var/cache/PackageKit/28/metadata/taw-Riot/repodata/37cbbc0f7f939386c5c86248c02302b215339f73ba53af3bef1ef56e17bc644c-appstream.xml.gz”: No such file or directory
Noticeably, dnf works fine.
Version-Release number of selected component (if applicable):
I'm not sure how it went wrong, but every update check simply fails with this error. Commands like "pkcon refresh force" and "pkcon update" fail in the exact same way.
Steps to Reproduce:
1. Run "pkcon update"
$ pkcon update
Getting updates [=========================]
Finished [ ] (0%) Command failed: Error when getting information for file “/var/cache/PackageKit/28/metadata/taw-Riot/repodata/37cbbc0f7f939386c5c86248c02302b215339f73ba53af3bef1ef56e17bc644c-appstream.xml.gz”: No such file or directory
PackageKit updates packages
This started happening after upgrading my Fedora 27 to 28. The update otherwise went flawlessly for as far as I can tell. I've already tried "sudo dnf clean all" as well, with no success. I was told on IRC to report this on the bugtracker.
It appears you're using a repo that claims to support appdata but doesn't actually provide it.
Made an upstream report to https://github.com/taw00/riot-rpm/issues/14, which is the upstream behind https://copr.fedorainfracloud.org/coprs/taw/Riot/. Still odd to me that PackageKit has issues with it that completely break PackageKit (cannot update anything else through it anymore either), but dnf will update from this repo just fine.
dnf doesn't use appdata, if the repo does not include appdata, it should not include:
Possible it's a copr bug, I've seen several cases are appdata doesn't get generated properly.
riot provides appdata as is required for desktop applications...
[todd@localhost ~]$ rpm -ql riot |grep appdata
I'm not sure I understand the issue.
Note: I am the maintainer of this RPM. If I am doing something incorrectly, I would love to know. Thanks!
This is an issue with tons of COPR and third-party repositories. And for some reason the entire repo refresh operation will fail just because you have one repo without valid appdata.
Something really has to be done about this as soon as possible if the GUI updater is to remain reliable.
I see this issue for disabled repos.
Fatal error: Error when getting information for file “/var/cache/PackageKit/28/metadata/rpmfusion-nonfree-nvidia-driver/repodata/appstream.xml.gz”: No such file or directory
Disabled rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 28 - Nonfree - NVIDIA Driver
Disabled rpmfusion-nonfree-nvidia-driver-debuginfo RPM Fusion for Fedora 28 - Nonfree - NVIDIA Driver Debug
Disabled rpmfusion-nonfree-nvidia-driver-source RPM Fusion for Fedora 28 - Nonfree - NVIDIA Driver Source
There seems to be something fishy with this.
However, I can confirm, making sure
this works around the issue.
it also breaks package install suggestion on the console when it cannot find a program in the PATH
Getting the same issue on F29, breaking GNOME Software updates.
$ sudo pkcon refresh force -c -1
[...] „/var/cache/PackageKit/29/metadata/rpmfusion-nonfree-nvidia-driver-29-x86_64/repodata/appstream.xml.gz” [...]: No such file or directory