To fetch the fastest mirrors and add the 10 fastest to the MIRRORS
variable in /etc/apt-fast.conf
, run:
sudo ./af-mirrors.py
The fastest mirror is also added to /etc/apt/sources.list.d/sources_<repo>.list
.
** Prerequisites
Install apt-fast according to the [[https://github.com/ilikenwf/apt-fast?tab=readme-ov-file#installation][official instructions]].
*** Install dependencies
To ensure the script functions as intended, install lsb-release
, netselect-apt
, and netselect
:
sudo apt-fast install lsb-release netselect-apt netselect
**** Netselect on Ubuntu
netselect
and netselect-apt
are not available in the Ubuntu repositories by default. They can be installed by downloading the Debian packages and installing them manually:
wget http://ftp.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-30.1_amd64.deb wget http://ftp.debian.org/debian/pool/main/n/netselect/netselect-apt_0.3.ds1-30.1_all.deb
sudo dpkg -i netselect_0.3.ds1-30.1_amd64.deb netselect-apt_0.3.ds1-30.1_all.deb