好吧,所以我只是打开 Pi4 并执行我平常的操作
apt update
,但我得到了一个奇怪的输出:
$ sudo apt update
[etc, no errors above this...]
Err:9 http://deb.debian.org/debian bullseye-security Release
404 Not Found [IP: 151.101.62.132 80]
Hit:10 https://ppa.launchpadcontent.net/theofficialgman/flatpak-no-bwrap/ubuntu focal InRelease
Hit:4 https://box64.debian.ryanfortner.dev/debian ./ InRelease
Hit:7 https://box86.debian.ryanfortner.dev/debian ./ InRelease
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian bullseye-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.
我对此有点困惑。我是一个菜鸟,但我对 bash/apt 有所了解。我以前遇到过这个错误,但只有当我尝试添加自定义存储库时才遇到此错误,而不是使用官方存储库时。上次,我通过从
sources.list.d
删除该源来修复此错误,但我不知道是否应该这样做,因为它看起来像是一个重要的源。直到今天早上它一直工作得很好。
以防万一,这是我的系统规格:
主板:Raspberry Pi 4 B 型 8GB RAM 操作系统:Debian 11 Bullseye (如果还有什么需要在评论里说)
任何帮助表示赞赏!
我想说你的
/etc/apt/sources.list
输入不正确。
您可以查看此链接并通过替换行
来编辑您的
sources.list
deb http://deb.debian.org/debian bullseye-security (...)
与
deb http://security.debian.org/debian-security bullseye-security (...)
根据需要将
(...)
替换为 main contrib non-free
。
顺便说一句,这个问题在 unix.stackexchange.com
上可能更合法希望有帮助。
cd /etc/apt/source.list.d sudo rm .list