Ubuntu更换国内源解决提高下载速度
字数统计:51 阅读时长 ≈ 1分钟under Linux tag Published on February 5th , 2020 at 12:59 am
备份原始源文件source.list
ssh连接上服务器,执行命令
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
修改源文件
- 执行命令更改权限
sudo chmod 777 /etc/apt/sources.list
- 执行命令编辑文件
vim /etc/apt/sources.list
- 删除原来内容,复制阿里源内容
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
本文由simyng创作,
采用知识共享署名4.0 国际许可协议进行许可,转载前请务必署名
文章最后更新时间为:February 4th , 2020 at 04:59 pm