Slow fedora mirror

Over the last week or so, maybe longer, dnf on my machines has been connecting to a ridiculously slow mirror. Download speeds are on the order of 10s of kilobytes. My question is how do I deal with this? I would like to report the mirror so that, hopefully, the problem can be fixed.
Failing that, how can I exclude a particular mirror from being used by dnf?


Hello @dciarnie! Welcome to the community! Please do take a few minutes to go over the introductory posts in #start-here when you have the time. They contain lots of useful information.

What about enabling DNF fastestmirror option?

    If enabled a metric is used to find the fastest available mirror. This overrides the order provided by the
    mirrorlist/metalink file itself. This file is often dynamically generated by the server to provide the best
    download speeds and enabling fastestmirror overrides this. The default is False.

So, edit /etc/dnf/dnf.conf

echo "fastestmirror=True" | sudo tee -a /etc/dnf/dnf.conf

Then, for instance

sudo dnf makecache --refresh
1 Like

Or as written here by @youssefmsourani :

sudo dnf config-manager --setopt=fastestmirror=True --save
1 Like

Thanks but I already have fastestmirror enabled.

My experience has been that fastestmirror is not particularly reliable in actually choosing the fastest mirror as illustrated by my current situation.

1 Like

Mmm ok.
But do you have identified what is the mirror that is so slow?

I don’t know if DNF has an option to exclude a specific mirror. It seems it doesn’t have.
BTW you can add an entry like this to /etc/hosts mirror.domain.something

That’s what I thought, I just hoped that I had missed something.
The alternative is to pick a host and set it as the baseurl in the repo file but that defeats the whole purpose of using mirrors in the first place.

For your information, someone else had your issue. It is reported on this ticket: Issue #7957: slow download speeds - fedora-infrastructure - has been temporarily disabled and the maintainer has been notified.

1 Like

@alciregi Please add mirror to the ticket as well since I’m too facing the same problem.

edit: Nevermind. Will do it myself.

1 Like

Yes. You can comment to or open a new issue by yourself :smiling_face: :+1: