On one of my machines:
dnf system-upgrade download --releasever 24
this does its thing for a while, but after downloading everything (or
rechecking that everything is already downloaded), dnf blows up with:
warning: /var/lib/dnf/system-upgrade/docker-1.10.3-19.gitee81b72.fc24.x86_64.rpm: Header
V3 RSA/SHA256
Signature, key ID 81b46521: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-
gpg/RPM-GPG-KEY-fedora-x86_64 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-
KEY-fedora-x86_64]
The downloaded packages were saved in cache until the next successful
transaction.
You can remove cached packages by executing 'dnf clean packages'.
The right filename is /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-24-x86_64
So, after a quick application of:
ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-24-x86_64 /etc/pki/rpm-gpg/RPM-GPG-
KEY-fedora-x86_64
This made dnf happy. But the question remains is why dnf is using the wrong
path on this particular machine. dnf had no issues with finding the gpg key
on all the other machines I updated to 24, but what it's major malfunction
here?