4
April
2025
Speeding up Debian updates: replacing repositories with their fast mirrors
16:57

Speeding up Debian updates: replacing repositories with their fast mirrors

4 April 2025 16:57

Debian updates by default come from debian.org servers that are located overseas. There are fast mirrors in the Russian Federation and Belarus that allow you to speed up the download of update packages.

Problem

Ubuntu has an "Update Manager" that allows you to evaluate the speed and select the fastest mirrors. In Debian there is no such utility with a graphical interface. The same problem occurs in antiX 23.2, which is based on Debian Stable.

updates_mint_isp
updates_mint_isp2

Warning

Attention! Before making changes to the repositories configuration, make copies of the original versions of the files "/etc/apt/sources.list" and "/etc/apt/sources.list.d/*".

The solution is the "netselect-apt" utility

su -
apt update
apt install netselect-apt

Launch:

netselect-apt

The result is the fastest, fastest "mirrors" for this version of Debian:
fastest

Editing the "sources.list" and "/etc/apt/sources.list.d" files

Depending on the distribution, you need to edit either one file sources.list, либо несколько в подкаталоге /etc/apt/sources.list.d.

It was#Debian Bookworm/Stable:

deb http://ftp.ru.debian.org/debian/ bookworm main contrib non-free non-free-firmware

It became#Debian Bookworm/Stable:
deb http://mirror.docker.ru/debian/ bookworm main contrib non-free non-free non-free-firmware

 

It was#Debian Bookworm Updates:

deb http://ftp.ru.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware

It became#Debian Bookworm Updates:

deb http://mirror.docker.ru/debian/ bookworm-updates main contrib non-free non-free-firmware

 

It was(antix.conf for antiX 23.2 runit):

deb [signed-by=/etc/apt/keyrings/antix-archive-keyring.gpg] http://mirror.truenetwork.ru/mxlinux/antix/bookworm bookworm main nonfree nosystemd

It became(antix.conf for antiX 23.2 runit)::
deb [signed-by=/etc/apt/keyrings/antix-archive-keyring.gpg] https://mirror.datacenter.by/pub/mirrors/mxlinux.org/packages/antix/bookworm/ bookworm main nonfree nosystemd


List of Debian repository mirrors

There is a list of Debian mirrors on the Internet, servers all over the world:
https://www.debian.org/mirror/list

Note: security updates are downloaded from central Debian servers anyway, for efficiency.

List of antiX repository mirrors

https://antixlinux.com/mirmon-packages/

Working antiX and MX Linux repositories in Russia, Belarus and Kazakhstan:

Automatic system for checking the list of "mirrors" of the current version of antiX 23.2 and MX 23.5:

*https://antixlinux.com/mirmon-packages/.

1) Russia
https://mirror.yandex.ru/mirrors/MX-Linux/MX-Packages/
http://mirror.truenetwork.ru/mxlinux/

2) Belarus
*https://mirror.datacenter.by/pub/mirrors/mxlinux.org/packages/

3) Kazakhstan
http://mirror.neolabs.kz/mx/packages/
https://mirror.ps.kz/mx/packages/

Note:
To add to the file for "apt sources", you need to add the text for your version at the end of the URL after the word "packages", for example,"/antix/bookworm/" for antiX 23.2.
For example, for a repository https://mirror.ps.kz/mx/packages/ for antiX 23.2 (based on bookworm) specify in the .conf file
deb [signed-by=/etc/apt/keyrings/antix-archive-keyring.gpg] https://mirror.ps.kz/mx/packages/antix/bookworm/ main nonfree nosystemd
For the same repository https://mirror.ps.kz/mx/packages/ but for antiX 21 or 22 (based on bullseye) specify in the .conf file
deb [signed-by=/etc/apt/keyrings/antix-archive-keyring.gpg] https://mirror.ps.kz/mx/packages/antix/bookworm/ main nonfree nosystemd

List of repositories for previous versions of antiX:
repositories for antiX 21/22
repositories for antiX 19


Last update: 05/08/2025 (list of package mirrors in antiX and MX repo)



Related publications