apt-get 更新失败

apt-get 更新失败

它给了我这个错误:

Get:1 http://kali-za.bitcrack.net/kali kali-rolling InRelease [30.5 kB]
Err:1 http://kali-za.bitcrack.net/kali kali-rolling InRelease
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Reading package lists... Done
W: GPG error: http://kali-za.bitcrack.net/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.

这是我的来源列表:

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

答案1

您必须下载与错误消息相关的 GPG 公钥:

wget -q -O - https://www.kali.org/archive-key.asc | gpg --import

它应该可以更好地工作:)顺便说一句,我没有测试过,但错误消息非常明确。

相关内容