I am using Fedora 25. I'm trying to install gcc on fedora25 using the sudo dnf install gcc command. It is always showing:
Error: Failed to synchronize cache for repo 'updates'
I am also getting the same error when I try to install other packages. What am I doing wrong?
I had a similar problem (with the same error message appearing) when I was trying to do the update while I was traveling to another country. After I was back, it was automatically resolved and I was able to update and do everything as normal again.
You may try to use the answer in the comments on this other question, which suggests using
Otherwise, this error probably means you need to change your local links to the mirrors, by
as answered here or manually to a one that works where you are now using something like the instructions in this url: https://www.cyberciti.biz/tips/rhel5-fedora-core-add-new-yum-repository.html