Ask Your Question

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

asked 2017-07-15 13:28:33 +0000

Samurai gravatar image

updated 2017-07-15 20:13:25 +0000

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 "http://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-26" "http://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-26"
edit retag flag offensive close merge delete


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

villykruse ( 2017-07-15 14:10:19 +0000 )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 ( 2017-07-15 14:18:09 +0000 )edit

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

Samurai ( 2017-07-15 14:46:41 +0000 )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 ( 2017-07-15 15:37:29 +0000 )edit

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

Samurai ( 2017-07-15 16:04:55 +0000 )edit

1 answer

Sort by » oldest newest most voted

answered 2017-07-15 15:33:24 +0000

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 ( 2017-07-15 15:49:02 +0000 )edit

Your Answer

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

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-07-15 13:28:33 +0000

Seen: 138 times

Last updated: Jul 15