配置 APT
把 Debian 或 Ubuntu 的 sources 指向 Depsilo 的 /apt/ 反向代理,同时保留签名校验。
之前
https://deb.debian.org/debian之后
http://localhost:23333/apt/debianDepsilo 是 APT 反向代理:替换 sources 文件中的仓库 URL,而不是设置 Acquire::http::Proxy。Depsilo 原样传递已签名的仓库内容,APT 仍会执行正常的 GPG 验证。
配置 Debian
链接到“配置 Debian”小节下面是 Debian 13 “trixie” 示例;其他版本必须替换 suite。
Types: debURIs: http://localhost:23333/apt/debianSuites: trixie trixie-updatesComponents: mainSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: debURIs: http://localhost:23333/apt/debian-securitySuites: trixie-securityComponents: mainSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg配置 Ubuntu
链接到“配置 Ubuntu”小节Ubuntu 使用 /apt/ubuntu 和对应的 codename:
Types: debURIs: http://localhost:23333/apt/ubuntuSuites: noble noble-updates noble-securityComponents: main universeSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg先备份并人工编辑现有 sources;不要盲目运行跨发行版的 sed -i。
验证请求
链接到“验证请求”小节-
刷新索引
终端窗口 sudo apt update -
确认来源已经改变
终端窗口 apt-cache policy | head -
在 Admin 中确认流量
在 Access logs 中核对
/apt/请求;InRelease等签名元数据会按原样转发。