Debian 10 更换成163 源
程序员文章站
2022-07-03 23:20:32
...
#先备份原来的源配置文件
mv /etc/apt/sources.list /etc/apt/sources.list_back_20191113
vi /etc/apt/sources.list
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-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
上面是最新的,官方给出的,而且是每隔4个小时更新一次,如果你添加后无法使用请到官方给出的更换源页面更换其他的源
http://mirrors.163.com/.help/debian.html
另外吐槽一下其他人写的更换源的方法,真的很差劲,复制粘贴,真是好教材。
上一篇: Debian10配置镜像源(外网、内网)
下一篇: debian10静态源(离线iso)配置