#[SOLVED] Extremely slow pacman/AUR speeds
207 messages · Page 1 of 1 (latest)
Edit /etc/pacman.conf and add DisableDownloadTimeout to [options]
okay ill try it rn
i added that under [options] but still download times out after 5 sec
also i should mention that its no different even when i keep download timeout to around 20 (that was suggested under some forums regarding this issue)
pacman or reflector like in the original screenshot?
reflector doesn't follow the config
well download speeds are still very slow
yeah this won't change that
--download-timeout n can be used to change the timeout in reflector
well i did that already once, set that to 10 and 25 once. still the same result
How did you measure your internet speed
What country are you in
which one is nearest to you
For me I'd do
$ wget -O /dev/null --quiet --show-progress --report-speed=bits --no-cache https://hel1-speed.hetzner.com/100MB.bin
/dev/null 100%[===============================================================================================>] 100.00M 316Mb/s in 2.7s
To test the speed
i just reinstalled arch so i was measuring my speed while downloading steam lol
india
SG
okay
it did go up to around 800kbs at one point but yea still extremely slow
There's probably nothing you can do
there must be something i can do
how am i supposed to deal with such speeds
speedtest cli?
the image i sent
its on linux
on linux
everything except aur and pacman works perfectly fine
amazing speed
~3.5mbs
These are the mirrors in india btw https://archlinux.org/mirrorlist/?country=IN
After you get rate-mirrors run rate-mirrors --protocol https arch | sudo tee /etc/pacman.d/mirrorlist
Someone said it's been more reliable than reflector for him
now thats weird
i actually
manually put the india mirrors in my mirrorslist lol
but ill try out rate-mirrors once
Save your current mirror list
right
just cat /etc/pacman.d/mirrorlist and paste it here :P
Server = https://in.mirrors.cicku.me/archlinux/$repo/os/$arch
Server = https://mirrors.nxtgen.com/archlinux-mirror/$repo/os/$arch
Server = http://in.mirrors.cicku.me/archlinux/$repo/os/$arch
Server = http://in-mirror.garudalinux.org/archlinux/$repo/os/$arch
Server = http://mirrors.saswata.cc/archlinux/$repo/os/$arch
Server = https://mirror.del2.albony.in/archlinux/$repo/os/$arch
Server = https://in.arch.niranjan.co/$repo/os/$arch
Server = http://mirrors.nxtgen.com/archlinux-mirror/$repo/os/$arch
Server = https://mirrors.saswata.cc/archlinux/$repo/os/$arch
Server = https://mirror.maa.albony.in/archlinux/$repo/os/$arch
Server = https://mirrors.abhy.me/archlinux/$repo/os/$arch
Server = https://archlinux.kushwanthreddy.com/$repo/os/$arch
Server = https://mirror.sahil.world/archlinux/$repo/os/$arch
Server = http://mirror.sahil.world/archlinux/$repo/os/$arch
Server = https://in-mirror.garudalinux.org/archlinux/$repo/os/$arch ```
i think its working? @polar lantern
only an indian mirror failed, interesting
infact the results dont have any indian mirrors at all
What did the in-mirror here get in the initial tests
initial tests as in?
reflector?
also for this i basically copied all indian mirrors from the archwiki and ran rankmirrors
Speed Issue fixed maybe?
wellll yes im satisfied with it xdd
but still its weird hwo the indian mirrors wont work on either of those testing methods
not that i personally care that much as long as my speed is alright
Put in Server = https://in-mirror.garudalinux.org/archlinux/$repo/os/$arch as the first mirror in the mirrorlist
and installl something
speed is okay right now
i dont think itll make a differnece
but ill keep it
indian mirrors will be faster anyways
If access to it is intermittent then the download falls back to the next mirror when the first mirror can't be reached
Depends on what kind of network the mirror is hosted on
would i be able to check if i have access or not to that specific mirror somehow
open the site? well that works
Surprising that the JP mirror was the fastest
right, i thought SG was gonna be the fastest after IN ones
Show your mirrorlist
added the first one after you asked me to
WAIT
i was download vs code while the first IN mirror was active and was getting miserable speeds of around 500kbs
i just commented the IN one and it jumped up to 3mb/s
Indian mirrors are low quality I guess
You can automate anything with systemd services and timers
Also here's the rate-mirrors algo https://github.com/westandskif/rate-mirrors?tab=readme-ov-file#algorithm
reflector does a naive speedtest only I guess
So it's at least slower to test
Do that
I read through it and it's correct
runs at what intervals?
OnCalendar=daily
oh okay thats great
and would i know when its running? or itll just run in the background
Show the log using the journalctl command
this should be it i believe
well yes it is
ah it's at the end
--save <file?
yeah
then sudo systemctl daemon-reload
and systemctl restart rate-mirrors
or start since it's not running
well i didnt reload/restart beforehand but still, doesnt work
maybe i did something wrong?
Show the log
can you give me the command for that, idk why but the results on mine show the time being 11 42 when its 11 54 right now
the journalctl
oh
oh root?
There's a --allow-root option for rate-mirrors
should i add that before protocol?
Yeah
Here's a alternative
ExecStart=/bin/bash -c '\
TMPFILE=$(mktemp) && \
/usr/bin/runuser -u userhere -- /usr/bin/rate-mirrors --save="$TMPFILE" --protocol https arch && \
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup && \
mv "$TMPFILE" /etc/pacman.d/mirrorlist
'
I didn't test
manually its working right now i believe
Ok
well its not showing any text or anything on my terminal though
like it normally would
but i guess its just this way
yeah it's running in a service
alright
you can see the output in the journal
yea it concluded
Some people like to the amount programs that run as root so this avoids running rate-mirrors as root
Feel free to use it if you want but it's not necessary
yupp it works
i checked the logs
thanks a lot for helping me through this 🙏
really appreciate it a lot
Now to add notifications
Add this below ExecStart
ExecStartPost=systemd-run [email protected] --user /usr/bin/notify-send "Mirrorlist updated" "rate-mirrors successfully refreshed /etc/pacman.d/mirrorlist." -u normal -i system-software-update
@turbid rose
The command works for me outside a systemd service
systemd-run has to be used to run notify-send in the users session
if just notify-send is used then it wont work because the notify bus and other stuff is running under the user
and the service doesn't know about those
i dont think ill get the notifications cuz im on hyprland and am using a very minimal setup sent by a friend xd
No need to start it in your hypr config because it's activated via D-Bus
hm okay
If there were multiple notification daemons installed then you should start your preferred one
where exactly do i need to add this?
Now add the thing to the service
Yeah
And replace the REPLACEWITHUSERNAME
You can also add a ExecStartPre with the same command and just replace the messages
have to refresh daemons right
yeah
Epic
😭
You're welcome
... solved
#17680 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: http://0x0.st/8Rt9.png
Thank you
About systemd services
hmm makes sense
ill check this out, thanks
Remember to save the service and timer somewhere if you reinstall