一般我们拿到服务器登录SSH之后,会需要更新源确保软件的最新版本。但是我们在更新 Debian之后有报错 提示E: The repository ‘http://security.debian.org bullseye/updates Release’ does not have a Release file.
这个到底是什么问题呢?镜像的源问题,我们需要更换。
root@itbulucom:~# apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Ign:4 http://security.debian.org bullseye/updates InRelease
Err:5 http://security.debian.org bullseye/updates Release
404 Not Found [IP: 151.101.26.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.
问题在于源的地址的问题,我们需要替换
debhttp://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian-security/ bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
请修改下源(/etc/apt/source.list),替换成下面的吧:
deb http://mirrors.linode.com/debian bullseye main
deb-src http://mirrors.linode.com/debian bullseye main
deb http://mirrors.linode.com/debian-security/ bullseye-security main
deb-src http://mirrors.linode.com/debian-security/ bullseye-security main
deb http://mirrors.linode.com/debian bullseye-updates main
deb-src http://mirrors.linode.com/debian bullseye-updates main
如果我们是国内的服务器,可以用国内镜像源。
2. 清华大学Ubuntu源镜像更新 「Ubuntu 14.04 - Ubuntu 22.04」
本文出处:老蒋部落 » Debian更新出错,提示E: The repository ‘http://security.debian.org bullseye/updates Release’ does not have a Release file. | 欢迎分享( 公众号:老蒋朋友圈 )