地址
https://mirror.nyist.edu.cn/debian/
说明
Debian 软件源
收录架构
Debian 支持的所有架构,如 AMD64 (x86_64), Intel x86, ARM, MIPS, ppc64el, s390x 等
收录版本
Debian Old Stable, Stable, Testing, Unstable(sid)
当前 Stable 为 Debian 10,代号为 Buster
使用说明
操作前请做好相应备份
一般情况下,将 /etc/apt/sources.list
文件中 Debian 默认的源地址 https://deb.debian.org/
替换为
https://mirror.nyist.edu.cn
即可。
可以使用如下命令:
sudo sed -i 's/deb.debian.org/mirror.nyist.edu.cn/g' /etc/apt/sources.list
当然也可以直接编辑 /etc/apt/sources.list
文件(需要使用 sudo)。以下是 Debian Stable 参考配置内容:
deb https://mirror.nyist.edu.cn/debian stable main contrib non-free
# deb-src https://mirror.nyist.edu.cn/debian stable main contrib non-free
deb https://mirror.nyist.edu.cn/debian stable-updates main contrib non-free
# deb-src https://mirror.nyist.edu.cn/debian stable-updates main contrib non-free
# deb https://mirror.nyist.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src https://mirror.nyist.edu.cn/debian stable-proposed-updates main contrib non-free
同时你也可能需要更改 Debian Security 源,请参考
debian-security
(TUNA)
更改完 sources.list
文件后请运行
sudo apt-get update
更新索引以生效。
相关链接
邮件列表:https://www.debian.org/MailingLists/