[解决]apt update报错 no longer has a Release file.

在Debian操作系统下,执行apt update之类的命令提示no longer has a Release file错误的原因基本是因为当前系统的版本和debian官网支持的更新版本不匹配。

报错信息分析

比如我这里执行apt update报错:

root@racknerd-de922ba:~# apt update
Ign:1 http://security.debian.org/debian-security buster/updates InRelease
Err:2 http://security.debian.org/debian-security buster/updates Release
  404  Not Found [IP: 151.101.2.132 80]
Ign:3 http://deb.debian.org/debian buster InRelease          
Ign:4 http://deb.debian.org/debian buster-updates InRelease
Err:5 http://deb.debian.org/debian buster Release
  404  Not Found [IP: 151.101.194.132 80]
Err:6 http://deb.debian.org/debian buster-updates Release
  404  Not Found [IP: 151.101.194.132 80]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security buster/updates Release' no longer has 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.
E: The repository 'http://deb.debian.org/debian buster Release' no longer has 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.
E: The repository 'http://deb.debian.org/debian buster-updates Release' no longer has 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.

错误信息大体提示:

The repository 'http://security.debian.org/debian-security buster/updates Release' no longer has a Release file.

报错解决

使用归档地址即可,执行下面命令:

echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list

出错原因相见:Debian 9/stretch moved to archive.debian.org

参考文章:

© 版权声明
THE END
喜欢就支持一下吧
点赞1 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容