根据这里的答案,debian拉伸存储库已经更改为存档。
在从maven构建dockerfile时未能获取debian amd64 64包:3.5.2-JDK-8
我以前的/etc/apt/sources.list是这样的:
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main
deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main"我在deb.debian.org文件中将archive.debian.org更改为D4,但是当我进行适当的更新时,会得到以下错误:
Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
Err:2 http://security.debian.org/debian-security stretch/updates Release
404 Not Found [IP: 146.75.106.132 80]
Ign:3 http://archive.debian.org/debian stretch InRelease
Ign:4 http://archive.debian.org/debian stretch-updates InRelease
Hit:5 http://archive.debian.org/debian stretch Release
Err:6 http://archive.debian.org/debian stretch-updates Release
404 Not Found [IP: 209.87.16.41 80]
Reading package lists...Done
E: The repository 'http://security.debian.org/debian-security stretch/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.
E: The repository 'http://archive.debian.org/debian stretch-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.发布于 2023-04-28 21:14:41
安全存储库也被移走了;使用
deb http://archive.debian.org/debian-security stretch/updates mainstretch-updates已经走了,您应该删除这一行。
请注意,扩展被移到存档存储库的原因是,它已经失去了近一年的支持(仅通过Debian )。您应该考虑使用较新的版本或启用扩展的LTS存储库 (如果使用受支持的包,则可以通过订阅来影响)。
https://unix.stackexchange.com/questions/744401
复制相似问题