Ask Your Question

Error: Failed to synchronize cache for repo 'fedora'

asked 2017-04-18 13:21:50 -0500

sudoee gravatar image

hello i'm new user using fedora, i have installed fedora 24 derivative which is Chapeau 24. i want to run dnf upgrade --refresh but i always got error :

Error: Failed to synchronize cache for repo 'fedora'

and if run dnf -v upgrade --refresh in terminal :

Cannot download '': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried. Error: Failed to synchronize cache for repo 'fedora'

how to solve that error ?

edit retag flag offensive close merge delete


Tell me one thing, Why Chapeau??

florian gravatar imageflorian ( 2017-04-18 15:48:03 -0500 )edit

Chapeau is a french word for "hat". That's a pun on Fedora, which is a pun on Red Hat. Maybe Red Hat is a pun on another pun ;) …

genodeftest gravatar imagegenodeftest ( 2017-04-18 17:02:28 -0500 )edit

@florian, because my laptop have nvidia optimus and fedora does not have nvidia-optimus like ubuntu and installing bumblebee is pain the ass.

sudoee gravatar imagesudoee ( 2017-04-18 22:02:39 -0500 )edit

I know. My question was rather why one would choose Chapeau OS as his or her system. I'm just trying to understand the choice.

florian gravatar imageflorian ( 2017-04-18 23:04:53 -0500 )edit

Ha. You got it. Looks like I didn't refresh the page between opening it and you giving an answer. Anything NVIDIA related that is not noveau is a pain in the ass in Fedora. But for sure less pain than having Adobe Flash installed by default.

florian gravatar imageflorian ( 2017-04-18 23:08:34 -0500 )edit

3 Answers

Sort by » oldest newest most voted

answered 2017-04-18 15:45:56 -0500

florian gravatar image

That looks like a broken mirror, or mirrormanager, or a bad internet connection.

Just run sudo dnf clean all and try again. And if that doesn't work, wait a bit.

edit flag offensive delete link more


yes, thank you

sudoee gravatar imagesudoee ( 2017-04-18 22:00:26 -0500 )edit

answered 2017-08-30 19:29:17 -0500

Yes, it can be DNS issue. Try checking /etc/resolv.conf and see if nameserver is set to something like

edit flag offensive delete link more

answered 2017-04-18 17:10:58 -0500

genodeftest gravatar image

After a look on the "fedora-repos" Package on Fedora 24, I noticed that the baseurl you wrote above is commented out. (Source): `

name=Fedora $releasever - $basearch

If the first section of your /etc/yum.repos.d/fedora.repo file does not look like this, you should reset that file to its defaults, e.g. by copying it from the link above. It looks like something or someone messed with your configuration. The baseurl should be hidden behind a comment, so dnf can use the metalink instead. Metalink works around your issue usually.

edit flag offensive delete link more



i resolve that by disable ipv6

sudoee gravatar imagesudoee ( 2017-04-18 22:00:09 -0500 )edit

your fedora.repo is supposed to look exactly like that. meaning, it's okay that baseurl is commented out (#baseurl=...).

gobigobi66 gravatar imagegobigobi66 ( 2017-04-18 23:21:24 -0500 )edit

@gobigobi66 no, my .repo currently use baseurl not the metalink. and it's running well

sudoee gravatar imagesudoee ( 2017-04-18 23:23:50 -0500 )edit

This is not related with IPv6 at all. You should not use the baseurl, but use the metalink instead.

genodeftest gravatar imagegenodeftest ( 2017-05-11 13:50:10 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2017-04-18 13:21:50 -0500

Seen: 4,320 times

Last updated: Apr 18 '17