Kali Linux 更新失败

Kali Linux 更新失败
Error http://http.kali.org kali/main Sources
  404  Not Found
Fetched 1,673 B in 42s (39 B/s)
W: GPG error: http:// http. kali. org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
W: GPG error: http://security. kali. org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
W: Failed to fetch copy:/var/lib/apt/lists/partial/http.kali.org_kali_dists_kali_main_binary-amd64_Packages  Encountered a section with no Package: header
W: Failed to fetch http:// http. kali. org/kali/dists/kali/main/source/Sources  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

root@kali:~# 

我如何更新我的 Kali 仓库?

答案1

您可以使用以下命令检查 apt-keyring:apt-key list

这应该可以解决你的问题:

apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

然后执行aptitude update(这对我很有用,解决了我密钥过期的问题。链接中出现了其他解决方案,如果你愿意的话可以尝试一下)

来源:https://forums.kali.org/showthread.php?24687-问题与apt-get-update

答案2

导致 Kali Linux 安装失败的最常见原因是遵循非官方建议,尤其是随意用非官方存储库填充系统的 sources.list 文件。以下帖子旨在阐明 sources.list 中应存在哪些存储库,以及何时应使用它们。

你可以在这里获取新的 Repos

答案3

打开你的终端并在下面输入这些文本

cat > /etc/apt/sources.list
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free

或者

cat > /etc/apt/sources.list
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

答案4

嘿伙计们,你们所要做的就是访问 kali linux 网站并从那里获取存储库,我遇到了同样的问题一个小时,在查看了一些论坛后,我得到了一个链接,只需打开终端,然后输入 gedit etc/apt/sources.list 打开 sources.list,然后删除那里的所有文本,然后复制并粘贴

德布http://http.kali.org/kalikali 主要非自由贡献

德布http://security.kali.org/kali-securitykali/updates 主要贡献 非自由

(但两个源之间没有空格,因此它们会堆叠在一起)接下来单击窗口左上角的文件,单击保存,然后关闭文件,然后返回终端,然后输入

apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y 

-如果没有留下评论告诉我发生了什么,希望这能有所帮助,我会尽快回复你:D

相关内容