apt update报错"The repository 'http://security.debian.org bullseye/updates Release' doe

2024-06-23 12:26:14 浏览数 (1)

Debian 11 执行apt update报错

代码语言:javascript复制
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

0 人点赞