Forum › Forums › New users › New Users and General Questions › Low apt install/update speeds
- This topic has 4 replies, 3 voices, and was last updated Sep 3-8:26 am by sybok.
-
AuthorPosts
-
September 1, 2021 at 6:07 pm #66217Member
acvale
Hi, my download speed with apt is really slow, generally 3-10Kb/s. I tried changing Antix repo with repo-manager but the speed stays the same. What should I do?
- This topic was modified 1 year, 8 months ago by acvale.
- This topic was modified 1 year, 8 months ago by acvale.
September 1, 2021 at 6:30 pm #66221Forum Admin
anticapitalista
::Welcome!
Try another repo until you find a faster one?
You may need to change both Debian and antiX repos.Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 3, 2021 at 8:18 am #66322Member
sybok
::The change can be performed via Control Centre (accessible in menu-tree: “Main menu” -> ‘Applications’ -> ‘System’ -> open ‘Control Centre’ -> select ‘Software’ in left-panel -> ‘Repo Manager’).
Also, if you get the repository addresses in a text-file (one repository on each line) ‘repos.txt’, you may try a simple command-line one-liner to test the speed:
while read -r one_item; do echo "${one_item}"; ping -c 8 "$(echo "${one_item}" | sed -u 's@^.*://\([^/]\+\)@\1@')"; done < repos.txtThis will iterate over the lines (loop: ‘while read’), print the currently read line (‘echo’), ‘ping’ the server of the repository (send 8 test packets, ‘-c’ specifies the count).
After the last packet sent to each repository, ‘ping’ prints a statistics.
This might be a quicker way to test it that manually switching via control centre provided you manage to get the list of repositories.
The ‘sed’ part removes the prefix such as ‘https:/ /’ and anything after the following ‘/’ so that ping has a server address.- This reply was modified 1 year, 8 months ago by sybok. Reason: Formatting of special strings (messed up by translation/visualisation) improved
- This reply was modified 1 year, 8 months ago by sybok.
September 3, 2021 at 8:26 am #66325Member
sybok
::Hm, my edited post seems to have disappeared. 🙁 Once again with more feeling.
The repository change can be performed via Control Centre (accessible in menu-tree: “Main menu” -> ‘Applications’ -> ‘System’ -> open ‘Control Centre’ -> select ‘Software’ in left-panel -> ‘Repo Manager’).
Use a repository closest to the country where you currently reside.Also, if you have list of the repositories in a text file (one repository on each line) named e.g. ‘repos.txt’, you may run a terminal/command-line one-liner
while read -r one; do echo "${one}"; ping -c 8 "$(echo "${one}" | sed -u 's@^.*://\([^/]\+\)@\1@' | xargs)"; done < repos.txt
Iterate (while loop) over the lines, print each line, ping repository’s server (contact using test packets ‘-c 8’ = total count of packets is 8).
The sed and xargs keep the server-part of the address only.Ping prints a statistics after the 8 packets which you can use to select the fastest repository.
If you get the repository list into a text file, this may be quicker that manually changing and testing the speed for each repository.- This reply was modified 1 year, 8 months ago by sybok. Reason: Edit: closest country
-
AuthorPosts
- You must be logged in to reply to this topic.