user@kali-core:~$ gpg /usr/share/keyrings/kali-archive-keyring.gpg
gpg: directory ‘/home/user/.gnupg’ created
gpg: keybox ‘/home/user/.gnupg/pubring.kbx’ created
gpg: WARNING: no command supplied. Trying to guess what you mean …
pub rsa4096 2025-04-17 [SC] [expires: 2028-04-17]
827C8569F2518CC677FECA1AED65462EC8D5E4C5
uid Kali Linux Archive Automatic Signing Key (2025) devel@kali.org
pub rsa4096 2012-03-05 [SC] [expires: 2027-02-04]
44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
uid Kali Linux Repository devel@kali.org
sub rsa4096 2012-03-05 [E] [expires: 2027-02-04]
I get this but when i do a sudo apt update it says
Err:5 Index of /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: GPG error: Index of /kali/ kali-rolling InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5
E: The repository ‘Index of / kali-rolling InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.