当前位置: 代码迷 >> 综合 >> debian 9 添加源
  详细解决方案

debian 9 添加源

热度:63   发布时间:2023-12-06 05:57:54.0

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

 

转载于:https://www.cnblogs.com/SirPi/p/9737957.html

  相关解决方案