Ubuntu Linux 更换源教程
因为Ubuntu自带的源已经老旧,下载速度慢,而且不稳定
本教程告诉大家如何更换Ubuntu源到国内几个比较好的源
更换源步骤如下:
- 备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- 命令行打开sources.list文件
sudo gedit /etc/apt/sources.list
- 修改sources,list文件【本例更改为阿里镜像源】
# 阿里镜像源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restri