我正在与一个 Debian GNU/Linux 7.5 (wheezy)
当我检查文件/etc/apt/sources.list该文件有这一行:
# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ wheezy/updates main
Run Code Online (Sandbox Code Playgroud)
我试图替换另一个 repo 行,但是每次我替换它并apt-get update在一段时间后运行命令时,我都会得到:
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我应该怎么做才能解决这个问题?
kem*_*tep 16
编辑:您也许可以遵循此 linuxquestions 线程中的建议并取消注释您的相关条目sources.list并尝试运行apt update.
Debian 7已于2018 年 5 月 31 日停产。这些存储库不再处于活动状态。您仍然可以获得对 Wheezy 的支持,但您采取行动迁移到 Jessie 甚至 Stretch 会减少很多痛苦和费用。
在Debian Wiki 上有关于现在 Debian Wheezy 停产的建议。您可能还想查看此条目以获取有关如何操作的更多信息。
如果您要升级到 Jessie,则sources.list需要更改为以下内容:
deb http://deb.debian.org/debian/ jessie main contrib non-free
deb-src http://deb.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://deb.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://deb.debian.org/debian/ jessie-updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)
然后运行apt update, apt install apt -t jessie, apt upgrade, 最后apt-get dist-upgrade更新并升级到 Jessie。
如果您绝对需要继续使用 Wheezy 并且无法更改为 Jessie,无论是由于此处概述的问题还是由于您的环境的其他一些限制,那么您可能需要更改为存档镜像或查看付费 ELTS 支持。
存档镜像将如下所示:
deb http://archive.debian.org/debian/ wheezy main contrib non-free
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
40099 次 |
| 最近记录: |