要自動切換至最快的ustc ubuntu鏡像源,可以使用以下步驟:
sudo nano /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
保存更改并退出編輯器。按下 Ctrl + X
鍵,然后按 Y
鍵,最后按 Enter
鍵。
更新軟件源列表,使更改生效:
sudo apt update
現在您的系統將自動切換至ustc ubuntu鏡像源,以獲取更快的下載速度。