拿到新的服务器,先换国内源,之后的下载速度飞起。
Ubuntu换国内源
1. 将sources.list备份到sources.list.bak
cd /etc/apt/
sudo cp sources.list sources.list.bak
2. 添加源(用vim或gedit编辑)
sudo vim sources.list
添加以下内容,覆盖掉原来内容
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted u