1. 首页
  2. 技术
  3. Linux

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

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

原创文章,作者:admin,如若转载,请注明出处:https://www.huiyingwu.com/3836/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注