方案1.shell命令一键更换
sudo curl -L https://github.com/AndyYoungDev/ubuntu-aliyun-sources/releases/download/shell/change.sh | bash
方案2.shell命令安装
sudo wget https://github.com/AndyYoungDev/ubuntu-aliyun-sources/releases/download/shell/change.sh
sudo chmod a+x change.sh
sudo ./change.sh
方案2.手工替换/etc/apt/sources.list
文件地址 https://github.com/AndyYoungDev/ubuntu-aliyun-sources
ubuntu 14.04 请使用sources1404.list
ubuntu 16.04 请使用sources1604.list
ubuntu 18.04 请使用sources1804.list
#提示 VIM编辑器,命令模式输入ggVG可全选,按d进行删除,按i进入insert模式,SHIFT+INS进行粘贴
https://github.com/AndyYoungDev/ubuntu-aliyun-sources
该内容很好,原文创作 https://blog.csdn.net/weixin_43960643/article/details/100748351, 转载好以后方便查找