debian 9 添加源

1.将下面内容的添加入/etc/apt/sources.list(香港镜像)

#For software
deb http://mirrors.ustc.edu.cn/debian/ stretch main
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main
deb http://mirrors.ustc.edu.cn/debian-security stretch/updates main
#For wineHQ
deb https://dl.winehq.org/wine-builds/debian/ stretch main
#For driver
deb http://httpredir.debian.org/debian/ stretch main contrib non-free

 

你也可以用一下命令:

echo "deb http://mirrors.ustc.edu.cn/debian/ stretch main
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main
deb http://mirrors.ustc.edu.cn/debian-security stretch/updates main
deb https://dl.winehq.org/wine-builds/debian/ stretch main
deb http://httpredir.debian.org/debian/ stretch main contrib non-free" >> /etc/apt/sources.list

 

 

2.执行更新动作

apt-get update

 注意:下面是163的debian9的源(会快些毕竟国内的)

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

 

posted @ 2018-10-02 20:06  SirPi  阅读(3748)  评论(0编辑  收藏  举报