This can happen from time to time ... but it's nothing to worry about.
It's a temporary connection issue, which mostly disappears by itself.
If you are experiencing the same when running sudo dnf upgrade
-
just execute sudo dnf clean all
and sudo rm -r /var/cache/dnf
.
If this doesn't solve the problem, change from "metalink" to "baseurl".
You can find all relevant .repo
files in the /etc/yum.repos.d
folder.
An example ... execute : sudo nano /etc/yum.repos.d/fedora.repo
Now you see the # in front of "baseurl" :
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
Edit the file to have it in front of "metalink" :
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
Save the change and close the file : press Ctrl + X then Y and then Enter