Debian 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用浙江大学的软件源镜像。
如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:
sudo apt install apt-transport-https ca-certificates
再使用下面的软件源镜像。
版本:buster
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.zju.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.zju.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.zju.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.zju.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.zju.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.zju.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.zju.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.zju.edu.cn/debian-security buster/updates main contrib non-free
其他Debian版本请访问浙江大学官网: