运行 apt-get update 时出现有关 Kali Linux 存储库的错误

运行 apt-get update 时出现有关 Kali Linux 存储库的错误
root@BlackRishi98:~# apt-get update
Get:1 http://old.kali.org/kali sana InRelease [20.3 kB]                
Err:1 http://old.kali.org/kali sana InRelease                          
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Get:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
Err:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Reading package lists... Done
W: GPG error: http://old.kali.org/kali sana InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
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 couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
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.

几天前,我尝试安装TheFatRatKali Linux 应用程序。此后,我开始收到这些错误。我甚至无法安装任何新软件包。

任何帮助都将受到赞赏。

答案1

看起来您已将 Kali Linux 存储库添加到存储库列表中以安装该软件包,但您尚未将存储库的公钥添加到本地密钥环。因此,Ubuntu 无法验证存储库的真实性。

以下命令应该可以修复这个问题:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6
sudo apt update

相关内容