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, 转载好以后方便查找

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值