apt-get update issue in Kali
Solution 1:
Yes, there appears to be issues with Kali Linux WSL (not downloaded from Microsoft Store).
The Kali archive keys appear to be missing and cannot be installed using apt-add key
since it relies on GnuPG, which cannot be installed using apt
, since the signatures cannot be verified.
The best solution is the one submitted by Jim which installed the Kali archive keys from a Debian package. Once this is done apt update
and apt upgrade
will work.
- Download the Debian package for the Kali archive keys
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
- Install the Kali archive key package
sudo dpkg -i kali-archive-keyring_2020.2_all.deb
- Update list of available packages from Kali repo
sudo apt update
- Upgrade the WSL system
sudo apt full-upgrade
Solution 2:
I did not alter /etc/apt/sources.list
.
I solved the "An error occurred during the signature verification" with the following commands (run from root):
wget --no-check-certificate https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb
dpkg -i kali-archive-keyring_2020.2_all.deb
apt update
Solution 3:
Manually download and install the needed package to verify the signature:
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb
sudo dpkg -i kali-archive-keyring_2020.2_all.deb
Then apt update
and apt upgrade
should work as expected.