─$ sudo apt-get update Get:1 http://kali.download/kali kali-rolling InRelease [41.5 kB]…
- User
─$ sudo apt-get update
Get:1 http://kali.download/kali kali-rolling InRelease [41.5 kB] Err:1 http://kali.download/kali kali-rolling InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5 Reading package lists... Done 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 couldn't be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5 W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5 W: Some index files failed to download. They have been ignored, or old ones used instead. Assistant
It looks like you're encountering a GPG key error when trying to update your Kali Linux system. This happens when the system doesn't have the required public key to verify the repository's signature. Here's how to fix it:
Solution:
-
Download and add the missing GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ED65462EC8D5E4C5If the above doesn't work, try using a different keyserver:
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys ED65462EC8D5E4C5 -
Update the package lists again:
sudo apt-get update
Alternative Solution (if the above fails):
If the key still isn't found, you can manually download and add it:
-
Download the key:
wget -q -O - https://archive.kali.org/archive-key.asc | sudo apt-key add
-