Skip to content

Instantly share code, notes, and snippets.

@MooreDerek
Last active June 12, 2025 07:39
Show Gist options
  • Save MooreDerek/23686fc29a22d4e1e88e3dd9055fbb07 to your computer and use it in GitHub Desktop.
Save MooreDerek/23686fc29a22d4e1e88e3dd9055fbb07 to your computer and use it in GitHub Desktop.
Installing Kali on WSL getting apt update error

Installing Kali

wsl --install -d kali-linux

When terminal starts up try running

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
@StinkAndShityAura
Copy link

StinkAndShityAura commented Jun 12, 2025

appreciate for all. im install wsl2 kali in win11 pro workstatsion N encounter same issue.
apt update shows need to verify signature. https://www.kali.org/blog/new-kali-archive-signing-key/ shows i need add gpg manually. But both apt-key and gpg are not installed.

final solution:
just follow the method from @d6062
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2025.1_all.deb
sudo dpkg -i kali-archive-keyring_2025.1_all.deb

tada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment