wsl --install -d kali-linux
sudo apt upgrade
and get the following error:
Get:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease [30.6 kB]
Err:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease
The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Fetched 30.6 kB in 2s (13.7 kB/s)
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://wlglam.fsmg.org.nz/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Following the steps shown here: https://superuser.com/questions/1644520/apt-get-update-issue-in-kali
will resolve the issue, but you may see the following error:
wget -O kali-archive-keyring_2020.2_all.deb https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb
--2021-10-26 10:24:41-- https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb
Resolving http.kali.org (http.kali.org)... 192.99.200.113, 173.246.100.151, 217.70.187.11, ...
Connecting to http.kali.org (http.kali.org)|192.99.200.113|:443... connected.
ERROR: The certificate of ‘http.kali.org’ is not trusted.
ERROR: The certificate of ‘http.kali.org’ has expired.
This is easily fixed by pulling from http
rather than https
wget -O kali-archive-keyring_2020.2_all.deb http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb