How to automatically choose the best ubuntu source

Backup the original file

cp /etc/apt/sources.list{,.backup}

Install python environment

apt install python3-pip

install software apt-select

pip3 install apt-select

execute the software to fetch and modify the sources.list file automatically

apt-select --country us

发表回复