I'm running Kali Linux in WSL2. It's a new installation (using wsl --install
) but when I try to apt-get update
I get the following error:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.jevincanders.net/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.
Now I've seen other questions that suggest an apt-key
command to fix this. However, this throws another error:
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
I can't install gnupg because I haven't run apt update
yet. What am I supposed to do here?