Ask Your Question

Error dist-upgrading to Fedora 28

asked 2018-05-18 09:08:31 -0500

Kalel gravatar image

updated 2018-05-18 15:02:29 -0500

florian gravatar image


This is the output when running 'dist-upgrade':

warning: /var/lib/dnf/system-upgrade/kernel-core-4.16.8-300.fc28.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 9db62fb1: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-x86_64 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-28-x86_64]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

Need a tip, fellas.

edit retag flag offensive close merge delete


It's not the best thing to do, but try to disable the refuel check, at least for now to update it, then turn it back on.

The other option is to look for the keys you need.

repogpgcheck=1 change 1 for 0, repogpgcheck=0

this file location on,/etc/yum.repos.d/

Ferm gravatar imageFerm ( 2018-05-18 11:07:10 -0500 )edit

Do not disable gpgcheck! That would be a bad workaround.

florian gravatar imageflorian ( 2018-05-18 14:58:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-18 14:59:03 -0500

florian gravatar image

updated 2018-05-18 15:05:56 -0500

Is the key present? To check run: ls /etc/pki/rpm-gpg/RPM-GPG-KEY-*

Try this: sudo dnf --releasever=28 update fedora-release

Make sure the key matches the keys published here:

Did you maybe not confirm the F28 keys with Y?

edit flag offensive delete link more


I have this exact same problem (except the first line warning is for kernel 4.16.14, not 4.16.8). I updated fedora-release as you suggested, but the packages were just added to cache instead of being installed.

I was not promoted to install keys on this machine. (I was prompted on a different machine, and it worked correctly.) Is there a way to force installing the keys even if not prompted?

Update: Oops. I can see what the problem is. This machine is actually running Fedora 25, not Fedora 27. So I guess I have to upgrade to 26 then 27 then 28. Or is there a quicker way?

kenjackson gravatar imagekenjackson ( 2018-06-13 09:40:45 -0500 )edit

You can skip one version for each upgrade. So you could do 25 to 27, then 27 to 28. Or you remain on 27 until 29 will be released. Or you reinstall using F28

florian gravatar imageflorian ( 2018-06-13 20:29:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-05-18 09:08:31 -0500

Seen: 550 times

Last updated: May 18