ubuntu一鍵更換阿里源

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章