Error: Failed to synchronize cache for repo 'fedora'
Fresh install of FC24 from USB, any time I attempt to install anything through DNF I get the following:
# dnf install nano
Repository InstallMedia has no mirror or baseurl set.
Error: Failed to synchronize cache for repo 'fedora'
Theres nothing wierd in my dnf config:
# cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
The .repo file in /etc/yum.repos.d/fedora.repo looks fine to me so I'm not sure where to go from here.
Usually this means that either your internet connection is not working or the mirror you are trying to reach is down (or has problems).
Please post /etc/yum.repos.d/fedora.repo, and /etc/yum.repos.d/fedora-updates.repo in your question above (I know, you said it's fine, let's just double-check).
Did you already try
sudo dnf clean all && sudo dnf upgrade
?Yes I've done a clean all and an upgrade - I get the same error every time I try to do anything with dnf unless I disable the repo.
Contents of the .repo file is : http://pastebin.com/G6Lqz9wX
Please see my answer below. You need to change line 5 of your fedora.repo from
to
This is a weird bug, and not all Beta users are experiencing this. Please consider reporting the bug on bugzilla.redhat.com .
Also change that line back as soon as Fedora 24 is released.
You may have to do the same for fedora-updates-testing.repo