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

2024-06-16 02:40:31 浏览数 (3)

Debian 11 执行apt update报错

代码语言:shell复制
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文件

代码语言:txt复制
deb http://security.debian.org/ bullseye/updates main
deb-src http://security.debian.org/ bullseye/updates main

改为

代码语言:txt复制
deb http://security.debian.org/ bullseye-security/updates main
deb-src http://security.debian.org/ bullseye-security/updates main

0 人点赞