Linux-Debian 9 配置apt-get源

查看Debian 版本

cat /etc/apt/sources.list

Linux-Debian 9 配置apt-get源_第1张图片

备份原来的源配置文件

cp /etc/apt/sources.list /etc/apt/sources.list.backup

重新编写源配置文件vim /etc/apt/sources.list将下面复制好的内容粘贴,wq保存

#debian 9.x (stretch)
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

 

你可能感兴趣的:(linux)