docs: add usage guides for common mirrors
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
`debian-security` 提供 Debian 安全更新。它需要与 [Debian 主仓库](/help/debian/)配合使用,不能代替主仓库。
|
||||
|
||||
安全更新对时效要求较高,通常建议保留官方 `https://security.debian.org/debian-security`。需要使用本站时,请先检查 [同步状态](/status),再按下面的方法替换安全更新条目。
|
||||
|
||||
## 选择发行版
|
||||
|
||||
运行 `cat /etc/os-release` 确认当前系统代号。常见对应关系:
|
||||
|
||||
| Debian 版本 | 代号 | 安全更新套件 |
|
||||
| --- | --- | --- |
|
||||
| Debian 13 | trixie | trixie-security |
|
||||
| Debian 12 | bookworm | bookworm-security |
|
||||
| Debian 11 | bullseye | bullseye-security |
|
||||
|
||||
目录存在不代表该版本仍处于官方安全支持期,请同时查阅 Debian 的安全支持和 LTS 公告。
|
||||
|
||||
## DEB822 格式
|
||||
|
||||
以 Debian 13 为例,备份 `/etc/apt/sources.list.d/debian.sources`,将其中安全更新段替换为:
|
||||
|
||||
```text
|
||||
Types: deb
|
||||
URIs: https://mirrors.app.itstudio.club/mirrors/debian-security/
|
||||
Suites: trixie-security
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
```
|
||||
|
||||
保留文件中 Debian 主仓库、updates 等其他段。Debian 12 将 `trixie-security` 改为 `bookworm-security`;Debian 11 使用 `bullseye-security`,并移除 `non-free-firmware` 组件。
|
||||
|
||||
## 传统 sources.list 格式
|
||||
|
||||
如果系统仍使用传统格式,备份 `/etc/apt/sources.list` 后,将原来的安全更新行改为:
|
||||
|
||||
```text
|
||||
deb https://mirrors.app.itstudio.club/mirrors/debian-security/ trixie-security main contrib non-free non-free-firmware
|
||||
```
|
||||
|
||||
按系统版本调整套件和组件。两种格式选择一种即可,不要重复添加相同的安全更新源。
|
||||
|
||||
## 更新索引
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
apt-cache policy
|
||||
```
|
||||
|
||||
若本站同步延迟、索引缺失或更新失败,将安全更新 URI 改回 `https://security.debian.org/debian-security` 后重试。不要关闭 APT 签名校验。
|
||||
|
||||
## 参考资料
|
||||
|
||||
- [TUNA Debian Security 使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/debian-security/)
|
||||
- [Debian 安全信息](https://www.debian.org/security/)
|
||||
- [Debian LTS](https://wiki.debian.org/LTS)
|
||||
Reference in New Issue
Block a user