I cant update fedora 32, curl error 37

sudo dnf update
Last metadata expiration check: 0:27:57 ago on Sun 19 Jul 2020 09:39:50 AM EDT.
Dependencies resolved.

Package Arch Version Repository Size

Upgrading:
code x86_64 1.47.1-1594686424.el7
code 86 M
google-chrome-stable x86_64 84.0.4147.89-1 google-chrome 66 M
rpmfusion-free-release noarch 32-1 rpmfusion-free 13 k
rpmfusion-nonfree-release noarch 32-1 rpmfusion-nonfree 13 k

Transaction Summary

Upgrade 4 Packages

Total size: 153 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] google-chrome-stable-84.0.4147.89-1.x86_64.rpm: Already downloaded
[SKIPPED] rpmfusion-free-release-32-1.noarch.rpm: Already downloaded
[SKIPPED] rpmfusion-nonfree-release-32-1.noarch.rpm: Already downloaded
[SKIPPED] code-1.47.1-1594686424.el7.x86_64.rpm: Already downloaded
warning: /var/cache/dnf/rpmfusion-free-b06e117020f7383b/packages/rpmfusion-free-release-32-1.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID 100bcd92: NOKEY
RPM Fusion for Fedora 32 - Free 0.0 B/s | 0 B 00:00
Curl error (37): Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-32 [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-32]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.

1 Like

Let’s verify the related packages are installed and confirm their integrity:

sudo rpm -q -a gpg-pubkey fedora-release-\* rpmfusion-\*-release | sort
sudo rpm -V -a gpg-pubkey fedora-release-\* rpmfusion-\*-release | sort -t / -k 2
3 Likes

sorry for the late reply
here it is
[root@new-host ~]# sudo rpm -q -a gpg-pubkey fedora-release-* rpmfusion-*-release | sort
fedora-release-common-32-3.noarch
fedora-release-workstation-32-3.noarch
gpg-pubkey-12c944d0-5d5156ab
gpg-pubkey-1482d93f-5832f85a
gpg-pubkey-3c3359c4-5c6ae44d
gpg-pubkey-7fac5991-4615767f
gpg-pubkey-be1229cf-5631588c
gpg-pubkey-d38b4796-570c8cd3
rpmfusion-free-release-24-3.noarch
rpmfusion-nonfree-release-24-3.noarch
[root@new-host ~]# sudo rpm -V -a gpg-pubkey fedora-release-* rpmfusion-*-release | sort -t / -k 2

1 Like

Rebuild the RPM database, import the default GPG key and enable the essential repositories:

sudo rpm --rebuilddb
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$(rpm -E %fedora)-$(uname -m)
sudo dnf config-manager --save --setopt=fedora.enabled=1 --setopt=updates.enabled=1
sudo dnf repolist
1 Like

hmmmm i am still getting the same error and some more

warning: /var/cache/dnf/rpmfusion-free-b06e117020f7383b/packages/rpmfusion-free-release-32-1.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID 100bcd92: NOKEY
RPM Fusion for Fedora 32 - Free 0.0 B/s | 0 B 00:00
Curl error (37): Couldn’t read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-32 [Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-32]
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’

1 Like

[root@new-host ~]# sudo rpm --rebuilddb
[root@new-host ~]# sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-(rpm -E %fedora)-(uname -m)
[root@new-host ~]# sudo dnf config-manager --save --setopt=fedora.enabled=1 --setopt=updates.enabled=1
[root@new-host ~]# sudo dnf repolist
repo id repo name
code Visual Studio Code
fedora Fedora 32 - x86_64
fedora-cisco-openh264 Fedora 32 openh264 (From Cisco) - x86_64
fedora-modular Fedora Modular 32 - x86_64
google-chrome google-chrome
rpmfusion-free RPM Fusion for Fedora 32 - Free
rpmfusion-free-updates RPM Fusion for Fedora 32 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 32 - Nonfree
rpmfusion-nonfree-updates RPM Fusion for Fedora 32 - Nonfree - Updates
updates Fedora 32 - x86_64 - Updates
updates-modular Fedora Modular 32 - x86_64 - Updates

1 Like

Clean DNF caches:

sudo dnf clean all

Re-enable the RPM Fusion repositories:

sudo rpm --import \
"https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-$(rpm -E %fedora)" \
"https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-$(rpm -E %fedora)"
sudo dnf reinstall \
"https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" \
"https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"

Check for updates:

sudo dnf --refresh upgrade
1 Like

THANK YOU SOO MUCH MY FRIEND!!! it fixed everything!!!
you guys are absolutely awesome wow
this community rocks

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.