Very slow download speed with pacman and aur

We have come across this with a lot of users from that reagion. @flyingcakes would be able to shed some light if he’s flying around in here.

Oh my … 200 that’s too much you only need 10 but for our region 20 would do. Try it like below.

sudo reflector --country Germany,United Stats,Singapore --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist

It would look for mirrors that have been updated within the last 12 hours in the countries mentioned and use https as their protocol.

After running the above command do a sudo pacman -Syyu to force update your mirror databases.

I’ve found rate-mirrors to be much more reliable.

This is what I run

rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist 

Indian mirrors are a hit and miss affair. German mirrors are much more reliable. You don’t have to worry about that though when using rate-mirrors.

3 Likes

I tried this, but this as suggested before, but this returns no servers or servers which don’t work at all.

So far after trying all the solutions provided here, the manual rankmirrors gives the fastest mirrors which sadly is 2Mbps, as compared to the speedtest, which is at 60Mbps.

About the failing checksums, I chose to do that manually too, downloading the required files using browser (turns out the link itself is slow,) and did the packagebuild.

Really appreciate all the help, and it’ll be amazing if anyone can suggest some alternative way of finding fast mirrors.

no the results remain the same unfortunately.

Same doubt. Is this some network restriction? AUR package sources don’t depend on your mirrorlist.

Did you try this :point_up_2: ?


Here are top servers from my mirror list : https://termbin.com/vqak

Replace your /etc/pacman.d/mirrorlist file with the contents on the link; and then try updating or downloading something. Since both of us are in India, I suppose my mirrorlist should work for you.


Sometimes my service provider block Endeavour OS forum too :wink:

1 Like

I am not sure, can you think of any network restrictions which might be causing it? That would really help me check for the exact issue.

Yes I did, the speed is stuck somewhere around 175-200 KB/s using wget, @petsam Sorry I had forgotten to respond the results. Does this help with the debug process?

This offficially the fastest my pacman has ever been :smiley: appx: 6-7 Mbps. Thank you

this has happened to me too. my ISP had blocked the ubuntu PPA website. and it took 15 days of my constant nagging to fix.

If I could get the probable network issues that could really help me solve this issue, TBH I don’t trust the engineers my ISP sends to debug issues, based on the past experiences, any tips would be super helpful

This kind of confirms that the issue is with your ISP.

Something even I don’t understand. Why would an ISP randomly block a Linux distribution website? I’ve faced similar blocking of EndeavourOS forum in the past on my network.

At this point, I suspect your ISP is simply not delivering on the deal. Is this an Tier 3 ISP? Many Tier 3 ISPs here simply don’t upgrade their infra (or whatever that should be called). At the beginning customers are less and they get good service, but eventually, they get more customers than what they can handle. As a result, your network speed and reliability drop drastically.

I could be a tier 4 ISP if there is such a thing. But thanks for pointing it out. I will take this up with the ISP.

If you mention your ISP @flyingcakes might be able to say if they’re good or bad I think he has somewhat experience with ISP’s over there.

It seems like your ISP is limiting your bandwidth toward any other, not well-known sites. If you can use YT and the most well-known sites and have problems with others that might be the case. To test this you can try another ISP (a better one) via 4G or something. If used with another ISP you might see a better result than what you’re getting now.

Another suggestion to @flyingcakes is why don’t just share your mirror list in a thread addressing users from India. We can use that as a test case or as a temporary solution.

2 Likes

@flyingcakes I am using wiretel internet right now. The tier A ISPs are not available in my locale.

I’m in north India, so not much idea about regional operators, but Wiretel doesn’t seem to have any big negative reviews around them. :thinking:
Just talk to the support persons, or wait a week if they fix something.

ISP sure are a pain here tbh.

Nice idea. I’ll get it done :+1:

2 Likes

That is so true. I’ll tinker around in the router settings, Just for good measure. Any tips regarding this would be super helpful.

I don’t think you would be able to get better speeds by setting stuff on your end. Because it’s kind of clear the problem is with your ISP. So it’s best to become a thorn in their side until they fix it for you. When I have issues like this I make screen capture videos so I can show them the problem, which helps all the time.

1 Like

This topic has gone dual. The title says about “pacman mirrors”, but there is also local Internet speed. It’s not the same.
About the internet speed, you need to investigate as several suggestions have been made.

About archlinux mirrors, each location has a different best mirrorlist.
Using known utilities helps in normal cases, but they can confuse you, for several reasons, like current availability, current sync status, server sync delay and maybe others.
The best (not the easiest) way to select your best mirrorlist, that would almost never change, is the manual way. Arch website and packages provide the best possible required tools.

Here is a “simple” way to find the best servers manually, with an example for Greece. Read and change settings to your location:

Dependencies

sudo pacman -S --needed jq pacman-contrib

Download Arch mirrors status.json

curl -s https://archlinux.org/mirrors/status/json/ | jq > status.json

Country and codes

Find the countries that are around your location and note their country codes

cat status.json | jq -c '.urls[] | [.country, .country_code] ' | sort -u | tr -d '[]\"'

Oneliners for ranking Greek mirrors with rankmirrors

The output presents the download time of the commutity.db file which is large enough to compare server’s speed. The lowest number, the fastest the server.

  • For Greek and Italian mirrors
    Change the country code(s) to your chosen ones. You may add more countries, keeping the same format.
cat status.json | jq '.urls[] | select(.country_code == "GR"), select(.country_code == "IT")  | .url ' | tr -d \" | sed 's|$|community/os/x86_64/|g' | xargs -I URL rankmirrors -u URL
  • For Greek mirrors only http, htpps
    If you want to narrow down according to server protocol. You may combine this to the previous example (with a little effort? :stuck_out_tongue_winking_eye: )
cat status.json | jq '.urls[] | select(.protocol == "https"), select(.protocol == "http") | select(.country_code == "GR")  | .url ' | tr -d \" | sed 's|$|community/os/x86_64/|g' | xargs -I URL rankmirrors -u URL

Create your custom mirrorlist

After having decided which servers you will use, find the proper entries in /etc/pacman.d/mirrorlist{,.pacnew} and copy them in the prefered order in the final /etc/pacman.d/mirrorlist.
Run a sync first

sudo pacman -Syy

Now you can use them.

Usage on updates

If the download speed seems lower than usual, disable the 1st server in the mirrorlist (add # at the beginning of the line) and resync (pacman -Syy).

#Server = http://some.server.url

Try again. If the next active server is better, keep it like this until slow speed returns.
Do this manually for some time (changing servers), until you find (if ever) your best server.

And remember, even the best server may fail once in a while.

5 Likes

try playing with these parameters: rate-mirrors --country-test-mirrors-per-country=10 --per-mirror-timeout=1500 arch

Otherwise it takes 2 servers per country by default. In your case you seem to be heavily limited by ISP.
1500ms is the default timeout, so just play with it.