7
submitted 1 year ago* (last edited 1 year ago) by pinkolik@random-hero.com to c/archlinux@lemmy.ml

Hello everyone!

I'm experiencing troubles when installing and updating dependencies via pacman, download speed is waaay too low like 30-40 kb/s. I've tried reflector and rank-mirors, I even moved mirrors from another machine where everything works well but nothing helped.

As far as I can tell it's not a slow internet connection problem, because when I download torrents the speed is good (up to 7 megabytes per second).

How can I troubleshoot this?

Thanks!

top 15 comments
sorted by: hot top controversial new old
[-] BaalInvoker@lemmy.eco.br 13 points 1 year ago

Use reflector. Sometimes it happens

# reflector --latest 20 --fastest 5 --save /etc/pacman.d/mirrorlist

[-] pinkolik@random-hero.com 5 points 1 year ago

This one + pacman -Syy helped me! Thank you a lot!

[-] omgitsaheadcrab@sh.itjust.works 4 points 1 year ago

Which countries are you including? I usually pick some neighbouring ones too

[-] g7s@lemmy.ml 3 points 1 year ago

Show us your reflector conf and your mirrorlist.

[-] g7s@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

Furthermore, check your mirror's status here

[-] pinkolik@random-hero.com 2 points 1 year ago

They seem to be synced

[-] pinkolik@random-hero.com 1 points 1 year ago
[pinkolik@acer-laptop ~]$ cat /etc/xdg/reflector/reflector.conf 
# Reflector configuration file for the systemd service.
#
# Empty lines and lines beginning with "#" are ignored.  All other lines should
# contain valid reflector command-line arguments. The lines are parsed with
# Python's shlex modules so standard shell syntax should work. All arguments are
# collected into a single argument list.
#
# See "reflector --help" for details.

# Recommended Options

# Set the output path where the mirrorlist will be saved (--save).
--save /etc/pacman.d/mirrorlist

# Select the transfer protocol (--protocol).
--protocol https

# Select the country (--country).
# Consult the list of available countries with "reflector --list-countries" and
# select the countries nearest to you or the ones that you trust. For example:
# --country France,Germany

# Use only the  most recently synchronized mirrors (--latest).
--latest 5

# Sort the mirrors by synchronization time (--sort).
--sort age
[pinkolik@acer-laptop ~]$ cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector @/etc/xdg/reflector/reflector.conf
# When:       2023-07-22 13:21:47 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2023-07-22 13:21:47 UTC
# Last Check: 2023-07-22 13:16:12 UTC

Server = https://london.mirror.pkgbuild.com/$repo/os/$arch
Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
Server = https://archlinux.mailtunnel.eu/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.tmmworkshop.com/archlinux/$repo/os/$arch
[pinkolik@acer-laptop ~]$ 
[-] g7s@lemmy.ml 3 points 1 year ago

Maybe you should uncomment the country option, and specify your country and a few close to you. Latest synchronized, doesn't mean they are close to you.

[-] JoelJ@lemmy.world 2 points 1 year ago

try doing pacman -Syy

it works for me, I have to do it every few months 🤷

[-] axzxc1236@lemmy.world 1 points 1 year ago

Maybe your BitTorrent software eats all the bandwidth so other networking programs shows bad performance?

Have you tried pacman without running your BitTorrent software?

[-] pinkolik@random-hero.com 1 points 1 year ago

Nah, I was only testing speed with torrents, right now pretty much everything is disabled

[-] mrmanager@lemmy.today 1 points 1 year ago

I doubt it's only pacman. Try downloading something with wget for example. It should also be slow then.

[-] g7s@lemmy.ml 3 points 1 year ago

It absolutely can be only pacman, if the mirrors chosen are on the other side of the planet.

[-] mrmanager@lemmy.today 1 points 1 year ago

Sure but I just assume that's not the case... :) But let's see.

[-] pinkolik@random-hero.com 1 points 1 year ago
[pinkolik@acer-laptop ~]$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from Unknown (x.x.x.x)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SDHD Hosts (x) [x km]: 87.342 ms
Testing download speed................................................................................
Download: 47.72 Mbit/s
Testing upload speed......................................................................................................
Upload: 49.01 Mbit/s
this post was submitted on 22 Jul 2023
7 points (100.0% liked)

Arch Linux

7173 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS