Ask Your Question
0

Fedora 27 - cannot syncronize cache for updates repo

asked 2018-05-22 10:14:28 -0500

updated 2018-05-22 11:40:45 -0500

villykruse gravatar image

Hi, I upgraded from Fedora 26 to 27 a couple of weeks ago, which went fine, and has been working without any problems since then. I've applied regular updates since then also without issues. This morning however i'm constantly getting the "cannot syncronize cache for updates repo" message, when doing a dnf update. The /etc/yum.repos.d/fedora-updates.repo has the following:

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

Has the updates repo changes it's configuration recently or something? Appreciate any help, thanks!

edit retag flag offensive close merge delete

Comments

Update: when running the update command with -v, I get " reviving: failed for 'updates', mismatched sha256 sum.", as well as a bunch of "error: Status code: 404 for http://mirror.uv.es/mirror/fedora/lin...64/repodata/6bfb2b2a1d71a2d2e89fca8fa860ec39137e49fa4b3a684f351330646f2ad31b-primary.xml.gz (http://mirror.uv.es/mirror/fedora/lin...64/repodata/6bfb2b2a1d71a2d2e89fca8fa860ec39137e49fa4b3a684f351330646f2ad31b-primary.xml.gz). ..." I tried with --refresh, and that seemed to do the trick. It would still be nice to know what was actually wrong though ...

Jan Schatteman gravatar imageJan Schatteman ( 2018-05-22 10:13:47 -0500 )edit

Sometimes the repositories are temporarily unavailable.

villykruse gravatar imagevillykruse ( 2018-05-22 11:44:32 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-05-22 12:02:34 -0500

masteroman gravatar image

Sometimes some of the repositories are not available. Have you tried emptying cache and trying again?

sudo dnf clean all
sudo dnf clean metadata

sudo dnf upgrade
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-05-22 07:54:53 -0500

Seen: 309 times

Last updated: May 22 '18