在 apt-get update 过程中遇到 bookworm-security 软件包错误

在 apt-get update 过程中遇到 bookworm-security 软件包错误

我无法在 stack overflow 上发布此内容,因为它说这是垃圾邮件,所以就在这里

描述:执行 sudo apt-get update 时,我遇到与“bookworm-security”存储库相关的错误。该命令的输出包含以下错误消息。

domin@fbi:~$ sudo apt-get update
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 https://deb.debian.org/debian bookworm InRelease                                                                                             
Ign:3 https://deb.debian.org/debian bookworm-security InRelease                                                                                    
Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
Get:5 https://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:6 https://repo.steampowered.com/steam stable InRelease
Err:7 https://deb.debian.org/debian bookworm-security Release
  404  Not Found [IP: 146.75.118.132 443]
Reading package lists... Done
E: The repository 'https://deb.debian.org/debian bookworm-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://packages.microsoft.com/repos/code/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/key.gpg are ignored as the file has an unsupported filetype.
W: https://deb.debian.org/debian/dists/bookworm/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/key.gpg are ignored as the file has an unsupported filetype.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
W: https://deb.debian.org/debian/dists/bookworm-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/key.gpg are ignored as the file has an unsupported filetype.
domin@fbi:~$

问题:输出显示与“bookworm-security”存储库特别相关的 404 错误,表示缺少 Release 文件。因此,出于安全考虑,从此存储库更新被禁用。

请求:我寻求有关在“apt-get update”过程中解决“bookworm-security”存储库问题的指导。如能提供任何见解或步骤来纠正此问题,我将不胜感激。

答案1

Debian 12(Bookworm)具有以下默认存储库:

deb http://deb.debian.org/debian bookworm main non-free-firmware
deb-src http://deb.debian.org/debian bookworm main non-free-firmware

deb http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware
deb-src http://deb.debian.org/debian-security/ bookworm-security main non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware

参考这里

@Mateuz 是对的,您有一个问题bookworm-security

您可以在此处修改源文件:(/etc/apt/source.list使用 sudo 或以 root 身份)。

相关内容