1、先备份源 防止更换后不能用找不到原来的源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、打开源文本将里面的全部注释掉
sudo nano /etc/apt/sources.list
3、将中科大的源替换进去
deb https://mirrors.ustc.edu.cn/debian/ stable main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stable-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stable-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stable-security main contrib non-free
4、然后更新源
sudo apt update
sudo apt upgrade -y