方案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, 轉載好以後方便查找