Installation problem curl (37)

Dear community! When trying to install fedora 40 with
sudo dnf system-upgrade download --releasever=40 --allowerasing

I get the the following error:
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-40-x86_64 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-40-x86_64]

I already tried the steps on this threat:

But then I get the error when trying the sudo rpm --import there I get the error

curl: (22) The requested URL returned error: 404
error: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-35: import read failed(2).
curl: (22) The requested URL returned error: 404
error: https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-35: import read failed(2).

What is your current Fedora release? You can check it with rpm -E %fedora command.

2 Likes

Hello @wijsje ,
Did you first do a sudo dnf distro-sync? If not you should prior to upgrading with the plugin.

1 Like

Check the output:

sudo rpm -q -a gpg-pubkey \*-gpg-keys \*-release \*-repos | sort
sudo rpm -V -a gpg-pubkey \*-gpg-keys \*-release \*-repos | sort -t / -k 2
1 Like
distribution-gpg-keys-1.79-1.fc35.noarch
fedora-gpg-keys-35-4.noarch
fedora-repos-35-4.noarch
gpg-pubkey-5c964ca1-5b6464f6
gpg-pubkey-94843c65-5dadbc64
gpg-pubkey-9867c58f-601c49ca
gpg-pubkey-d651ff2e-5dadbbc1
rpmfusion-free-release-35-1.noarch
rpmfusion-nonfree-release-35-1.noarch
.......T.  c /etc/yum.repos.d/fedora.repo
.......T.  c /etc/yum.repos.d/fedora-updates.repo

fedora 35

Hey @jakfrost,
No I just followed the steps here: Upgrading Fedora Linux Using DNF System Plugin :: Fedora Docs

I tried to run the installation after your suggested step, but the same error appears.

Upgrading across more than 2 release is not supported:

3 Likes

Thank you! This is indeed the problem

1 Like