安装Ubuntu 18.04后,使用国外源太慢了,修改为国内源会快很多。
修改阿里源为Ubuntu 18.04默认的源
备份/etc/apt/sources.list
# 备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list文件前面添加如下条目
阿里源
# 添加阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bi

本文介绍了如何在Ubuntu 18.04系统中将默认的国外源替换为国内源,如阿里云源,以提高软件更新和安装速度。步骤包括备份sources.list文件,编辑添加阿里源条目,并执行更新源的命令。
最低0.47元/天 解锁文章
8642

被折叠的 条评论
为什么被折叠?



