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文件

deb http://security.debian.org/ bullseye/updates main
deb-src http://security.debian.org/ bullseye/updates main

改为

deb http://security.debian.org/ bullseye-security/updates main
deb-src http://security.debian.org/ bullseye-security/updates main
最后修改:2024 年 06 月 16 日
如果觉得我的文章对你有用,请随意赞赏