在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
暂无评论内容