Rate-mirrorlist during garuda-update constantly picking bad mirrors

I’ve noticed that the rate-mirrors has been picking out of date or broken mirrors more than 50% of the time I use garuda-update (which is once per day). I looked for and found the flag to stop it from updating the mirror list, but that only fixes my issues with it. I question the logic of using rate-mirrors every single time by default.

Aside from making it take longer each update (it takes more time to sort the mirrors than it saves from re-picking a “fast” mirror each time), the fact that rate-mirrors doesn’t seem to weed out out-of-date or corrupted mirrors means that more than half the time it’s run (at least in my case) it picks a bad mirror.

This is bad behavior to have on by default. Why not switch the default so that the first time it’s run it does a rate-mirror, then sets a setting requiring a flag to use rate-mirror in the future, essentially opposite how it works now. Or find a way to fix rate-mirror.

unrelated to Garuda, talking about rate-mirrors only:
its defaults prevent you from using outdates mirrors, see the algorithm for details (--completion=1 and --max-delay options control it).

So it makes sense to either double check options, you pass to it, or share your definition of “broken” and “corrupted” mirrors.

It will often pick mirrors that have core packages at versions below that of ones that I currently have on my system (some of which haven’t been updated in days, and I only update from official repos).

One mirror in particular that it likes has a particular package that is broken in such a way that it spams the output that something is wrong with that one package about 50 times, then fails the garuda-update. Running it again to get a different mirror solves the issue.

I don’t run rate-mirror by itself, only as part of garuda update, so either rate-mirrors is terrible at determining broken and out of date repos, or garuda-update is making it so via whatever flags it uses.

Got it!

  • I’m not a Garuda user, so I don’t know what options it passes to rate-mirrors by default
  • if rate-mirrors is run with the default --completion 1, then you should be getting up to date mirrors. It uses mirror data from the official Arch Mirror Status page. So should you find that bad mirror there with 100% completion, it’s all on those Arch checks then

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.