仓库 “https://deb.debian.org/debian bookworm-security Release” 没有 Release 文件

更新系统时出现这个错误提示。切换到 163 源也是提示 bookworm-security 没有 release 文件,又尝试了华为云和上海交大,也都是不行。
出现这个错误提示的原因是什么?如何解决?

贴一下你的 /etc/apt/sources.list/etc/apt/sources.list.d/*

不过估计是你的 URL 写错了,安全更新正确的 URL 是 https://deb.debian.org/debian-security

如果你要简单复制粘贴,推荐用这个:

deb Index of /debian bookworm main contrib non-free non-free-firmware
deb-src Index of /debian bookworm main contrib non-free non-free-firmware

deb Index of /debian bookworm-updates main contrib non-free non-free-firmware
deb-src Index of /debian bookworm-updates main contrib non-free non-free-firmware

deb Index of /debian bookworm-backports main contrib non-free non-free-firmware
deb-src Index of /debian bookworm-backports main contrib non-free non-free-firmware

deb Index of /debian-security bookworm-security main contrib non-free non-free-firmware
deb-src Index of /debian-security bookworm-security main contrib non-free non-free-firmware

deb Index of /debian-security bookworm-security main contrib non-free non-free-firmware
deb-src Index of /debian-security bookworm-security main contrib non-free non-free-firmware

你应该用 markdown 语法包裹住代码。

你使用了重复的 bookworm-security 库,我不知道是不是问题所在;我建议你直接复制粘贴这个:

sources.list 的语法中,# 开头的行是注释,会被 apt 忽略掉。

啊!我换成了 lmde 6,从软件源工具来回切换时,没有出现这个问题。
希望 lmde 6 能把 debian 12 调教的更方便,更耐用