Debian 11 执行apt update
报错
root@loaclhost:~# apt update /etc/apt/sources.list
Ign:1 http://security.debian.org bullseye/updates InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Err:4 http://security.debian.org bullseye/updates Release
404 Not Found [IP: 151.101.78.132 80]
Reading package lists... Done
E: The repository 'http://security.debian.org bullseye/updates 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.
解决
找到/etc/apt/sources.list
文件
把
代码语言:javascript复制deb http://security.debian.org/ bullseye/updates main
deb-src http://security.debian.org/ bullseye/updates main
改为
代码语言:javascript复制deb http://security.debian.org/ bullseye-security/updates main
deb-src http://security.debian.org/ bullseye-security/updates main