我正在使用Kali for Windows (说来话长),由于签名无效,我似乎无法安装任何东西。gpg工具甚至没有安装,所以我不能使用gpg来验证签名。
我试过以下几种方法,但没有运气:
# sudo apt -o Acquire::AllowInsecureRepositories=true \
> -o Acquire::AllowDowngradeToInsecureRepositories=true \
> update
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Err:1 http://kali.download/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.我还尝试了以下操作,但也有一个错误:
# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation发布于 2021-05-06 15:16:41
如果您有此问题,因为您直接将Kali下载为一个.appx包(而不是从MS下载)--我在另一篇文章中看到这个包似乎被破坏了。( MS Store版本对我来说没有问题)
但是,如果您无法访问MS Store --为了解决无效签名的具体问题--以下操作对我有效:
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb
apt install ./kali-archive-keyring_2020.2_all.deb作为根(或使用sudo),第二个命令在末尾抛出一个错误,可以忽略它。apt-得到更新后,没有问题。
如果kali存档-keyring_2020.2_all.deb已经更新,您可以在这里检查新版本并修改链接:https://http.kali.org/kali/pool/main/k/kali-archive-keyring/
https://unix.stackexchange.com/questions/636671
复制相似问题