更新 Kali linux 时出现错误

更新 Kali linux 时出现错误

我在更新和升级 kali linux 时遇到错误

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

错误>

Ign:1 http://http.kali.org/kali sana InRelease                                 
Ign:2 http://security.kali.org/kali-security sana/updates InRelease
Err:3 http://http.kali.org/kali sana Release  
  404  Not Found
Err:4 http://security.kali.org/kali-security sana/updates Release
  404  Not Found
Reading package lists... Done
E: The repository 'http://http.kali.org/kali sana 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://security.kali.org/kali-security sana/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.

但仅更新不会给出任何错误,但升级会出现任何错误,因此我无法安装新的应用程序,我该怎么办?

我已将存储库地址更改为

deb http://http.kali.org/kali kali-rolling main contrib non-free

deb http://old.kali.org/kali sana main non-free contrib

这是来自 kali 官方网站

[kali][1]

现在收到错误>

    Get:2 http://old.kali.org/kali sana InRelease [20.3 kB]                        
Err:2 http://old.kali.org/kali sana InRelease                      
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Err:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Reading package lists... Done
W: GPG error: http://old.kali.org/kali sana InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
E: The repository 'http://old.kali.org/kali sana InRelease' is not signed.
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.
W: GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
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.

出现这个错误。

答案1

来自Kali Linux 文档:

sources.listKali Linux 安装损坏的最常见原因是遵循非官方建议,特别是使用非官方存储库任意填充系统文件。以下帖子旨在阐明 中应该存在哪些存储库sources.list以及何时使用它们。

添加到 Kalisources.list文件中的任何其他存储库很可能会破坏您的 KALI LINUX 安装。

[...]

退役的 Kali sana (2.0) 存储库

要访问已停用的 sana 存储库,请在您的sources.list 中包含以下条目:

deb http://old.kali.org/kali sana main non-free contrib
# For source package access, uncomment the following line
# deb-src http://old.kali.org/kali sana main non-free contrib

相关内容