Error: Failed to synchronize cache for repo 'fedora'
Hi,
I am getting this error, when I try to use dnf check-update or any dnf commands. Error: Failed to synchronize cache for repo 'fedora'
after troubleshooting lots of thing. I found changing mirror link to http instead of https.. it works fine.
cat /etc/yum.repos.d/fedora.repo
[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=14d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
Internet connection down? Mirror server down? Just wait a bit and try again, or run
sudo dnf clean all && sudo dnf upgrade
. I would not recommend setting the metalink to http instead of https.If the friend's tip above doesn't work, try
sudo dnf clean all
and remember apply aftersudo dnf makecache