Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Last active October 29, 2018 13:18
Show Gist options
  • Save kurtis318/f50e32d99cb23fc82cde5844064984c6 to your computer and use it in GitHub Desktop.
Save kurtis318/f50e32d99cb23fc82cde5844064984c6 to your computer and use it in GitHub Desktop.
File not found appstream.xml.gz

Issue

Running KDE Plasma desktop and software updates show a message similar to this one

Error when getting information for file 
“/var/cache/PackageKit/28/metadata/rpmfusion-nonfree-nvidia-driver/repodata/appstream.xml.gz”: No such file or directory 

Solution

REF: https://bugzilla.redhat.com/show_bug.cgi?id=1580162#c3

dnf doesn't use appdata, if the repo does not include appdata, it should not include:
enabled_metadata=1

Turns out that /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo contains enabled_metadata=1 for repository rpmfusion-nonfree-nvidia-driver (this is the first one in the file). Commenting out the line fixed the issue.

Other repositories that need enabled_metadata commented out are: rpmfusion-nonfree-steam

The following commands should not return any errors after changing the repo file above.

sudo pkcon repair
sudo pkcon update
sudo pkcon refresh force -c -1 --allow-reinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment