Debian9 (stretch) 更换为阿里源包

Debian 9 (stretch) 更换为阿里源包

修改/etc/apt/sources.list文件

# 备份原文件,养成好习惯
cp /etc/apt/sources.list /etc/apt/sources.list_back 
# 编辑/etc/apt/sources.list
vim /etc/apt/sources.list

将里面的内容全部替换成:

deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free

保存并更新软件包 :

apt-get update

实际测试发现速度还蛮快的。

Last modification:July 26th, 2019 at 10:00 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment