Ask Your Question

problem upgrading fedora 25 to 26 (curl error #37)

asked 2017-07-15 08:28:33 -0500

Samurai gravatar image

updated 2017-07-15 15:13:25 -0500

Trying to upgrade fedora 25 to 26

dnf system-upgrade download --refresh --releasever=26 --allowerasing

get the following:

warning: /var/lib/dnf/system-upgrade/libde265-1.0.2-5.fc26.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 9690e4af: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26]

Would appreciate any help.

Edit: I was missing some upgrades, but after upgrading them the problem still persists.

# dnf upgrade --refresh  
Last metadata expiration check: 0:00:15 ago on Sat Jul 15 19:15:42 2017.
Dependencies resolved.
Nothing to do.

And running dnf system-upgrade I get the same message.

The file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26 exists but seems to be empty, any way I could add the proper contents in it or get the file from somewhere and replace it.

# rpm -qa | grep rpmfusion

# dnf reinstall rpmfusion-nonfree-
rpmfusion-nonfree-appstream-data-26-2.fc26.noarch        rpmfusion-nonfree-release-rawhide-26-1.noarch
rpmfusion-nonfree-release-26-1.noarch                    rpmfusion-nonfree-remix-kickstarts-0.20.0-2.fc26.noarch

Somehow got passed the error for rpmfusion-free and get one for nonfree at the moment.

warning: /var/lib/dnf/system-upgrade/akmod-wl- Header V4 RSA/SHA1 Signature, key ID 3276f4b3: NOKEY
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-26 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-26]


Did an rpm --import (from here) for both rpmfusion and it seemed to solve the issue.

rpm --import "" ""
edit retag flag offensive close merge delete


Did you upgrade your current version 25 with all updates before starting the upgrade process?

villykruse gravatar imagevillykruse ( 2017-07-15 09:10:19 -0500 )edit

Yes, I run a dnf upgrade every other day or so and did so before trying the system-upgrade. Though I'm behind a very slow connection and it has taken over a day to download ~3gb for the upgrade. Gonna try and upgrade again and see how it goes.

Samurai gravatar imageSamurai ( 2017-07-15 09:18:09 -0500 )edit

Ran a dnf upgrade and I was missing some upgrades, but even though I still get the same message

Samurai gravatar imageSamurai ( 2017-07-15 09:46:41 -0500 )edit

That file is normally shipped by an RPM. Search for it with rpm -qa | grep rpmfusion, and then try to reinstall it with dnf reinstall <package-name>.

thomaswood gravatar imagethomaswood ( 2017-07-15 10:37:29 -0500 )edit

Did a reinstall but still having problem, edited the question. Funnily dnf suggestions are from 26.

Samurai gravatar imageSamurai ( 2017-07-15 11:04:55 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-07-15 10:33:24 -0500

villykruse gravatar image

The file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-26 comes with the latest version of rpmfusion-free-release. Run

rpm -V rpmfusion-free-release

to verify that this package is installed and all files are not modified.


dnf reinstall rpmfusion-free-release

to fix if one or more of the file bad. The version of rpmfusion-free-release should be 25-2 for a version 25 of fedora.

edit flag offensive delete link more


I somehow got passed rpmfusion-free and now get a rpmfusion-nonfree (package akmod-wl- ... did reinstall for both, for free it was 25-1 and for nonfree 25-1-1.

Samurai gravatar imageSamurai ( 2017-07-15 10:49:02 -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

1 follower


Asked: 2017-07-15 08:28:33 -0500

Seen: 4,536 times

Last updated: Jul 15 '17