首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian拉伸的安全回购不再起作用

Debian拉伸的安全回购不再起作用
EN

Unix & Linux用户
提问于 2023-04-28 19:52:47
回答 1查看 4.3K关注 0票数 3

根据这里的答案,debian拉伸存储库已经更改为存档。

在从maven构建dockerfile时未能获取debian amd64 64包:3.5.2-JDK-8

我以前的/etc/apt/sources.list是这样的:

代码语言:javascript
复制
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,但是当我进行适当的更新时,会得到以下错误:

代码语言:javascript
复制
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.
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2023-04-28 21:14:41

安全存储库也被移走了;使用

代码语言:javascript
复制
deb http://archive.debian.org/debian-security stretch/updates main

stretch-updates已经走了,您应该删除这一行。

请注意,扩展被移到存档存储库的原因是,它已经失去了近一年的支持(仅通过Debian )。您应该考虑使用较新的版本或启用扩展的LTS存储库 (如果使用受支持的包,则可以通过订阅来影响)。

票数 11
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/744401

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档