Ask Your Question

Error: Failed to synchronize cache for repo 'fedora'

asked 2017-04-18 18:21:50 +0000

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 'http://download.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/': 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 ( 2017-04-18 20:48:03 +0000 )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 ( 2017-04-18 22:02:28 +0000 )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 ( 2017-04-19 03:02:39 +0000 )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 ( 2017-04-19 04:04:53 +0000 )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 ( 2017-04-19 04:08:34 +0000 )edit

3 answers

Sort by » oldest newest most voted

answered 2017-04-18 20:45:56 +0000

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 ( 2017-04-19 03:00:26 +0000 )edit

answered 2017-08-31 00:29:17 +0000

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 22:10:58 +0000

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 ( 2017-04-19 03:00:09 +0000 )edit

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

gobigobi66 ( 2017-04-19 04:21:24 +0000 )edit

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

sudoee ( 2017-04-19 04:23:50 +0000 )edit

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

genodeftest ( 2017-05-11 18:50:10 +0000 )edit

Your Answer

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

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2017-04-18 18:21:50 +0000

Seen: 4,214 times

Last updated: Apr 18 '17