Debian 镜像使用帮助

优质
小牛编辑
126浏览
2023-12-01

Debian 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。

如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:

$ sudo apt install apt-transport-https ca-certificates

再使用 TUNA 的软件源镜像。

sid testing bullseye buster stretch jessie # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}} main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}} main contrib non-free{{if release_name|notequals>sid}} deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-updates main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-backports main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ {{release_name}}-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security {{release_name}}{{release_security}} main contrib non-free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security {{release_name}}{{release_security}} main contrib non-free {{/if}}