# Debian Security 软件仓库

> 可调整选项：
> - 镜像地址：`https://mirrors.cernet.edu.cn/debian-security`
> - sudo：`开启`
> - Debian 版本 (release)：`Debian 13 (trixie)`
>   - 可选值：
>     - `Debian 13 (trixie)`
>     - `Debian 12 (bookworm)`
>     - `Debian 11 (bullseye)`
>     - `testing`
> - Debian 版本 (release_deb822)：`Debian 13 (trixie)`
>   - 可选值：
>     - `Debian 13 (trixie)`
>     - `Debian 12 (bookworm)`
>     - `testing`
> - 启用源码源 (src)：`关闭`
>   - 可选值：`开启`、`关闭`
> - 使用非自由软件源 (nf)：`开启`
>   - 可选值：`开启`、`关闭`


> 本站收录所有共享帮助文档；文档存在不代表浙江大学镜像站当前提供该镜像。请查阅 https://mirrors.zju.edu.cn/mirrorz.json 确认当前目录与状态。
> 下列命令使用上述选项，请根据实际系统版本选择；未填写的文本选项需要在原文页面补充。

## 项目简介

本仓库为 Debian 操作系统的安全更新软件源。

## 使用方法

大部分 Debian 的软件源配置文件使用传统的 One-Line-Style，路径为 `/etc/apt/sources.list`；但是对于容器镜像，从 Debian 12 开始，其软件源配置文件变更为 DEB822 格式，路径为 `/etc/apt/sources.list.d/debian.sources`。一般情况下，将对应文件中 Debian 默认的源地址 `http://security.debian.org/` 替换为镜像地址即可。

为了保证安全更新的时效性，Debian 不推荐用户使用安全更新镜像，如确需使用请选择同步频次较高的镜像站。

### 传统格式（`/etc/apt/sources.list`）

```properties
# 默认注释了源码镜像以提高 apt update 速度，如有需要可自行取消注释
deb https://mirrors.cernet.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
# deb-src https://mirrors.cernet.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
```

### DEB822 格式（`/etc/apt/sources.list.d/debian.sources`）

```yaml
Types: deb
URIs: https://mirrors.cernet.edu.cn/debian-security
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

# Types: deb-src
# URIs: https://mirrors.cernet.edu.cn/debian-security
# Suites: trixie-security
# Components: main contrib non-free non-free-firmware
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
```

---

许可：[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
文档索引：https://mirrors.zju.edu.cn/llms.txt
如仅限浙大校内网络访问，可将 mirrors.cernet.edu.cn 替换为 mirrors.zju.edu.cn。
