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
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