Skip to content

Instantly share code, notes, and snippets.

@aramosf
Created September 10, 2023 09:32
Show Gist options
  • Save aramosf/aa06741f7be0cc86ebc1b2ab1aad9a5b to your computer and use it in GitHub Desktop.
Save aramosf/aa06741f7be0cc86ebc1b2ab1aad9a5b to your computer and use it in GitHub Desktop.
apt update error in kali
Problem (in my case Kali 2023.2)
└─# apt update
Get:1 http://kali.download/kali kali-rolling InRelease [41.2 kB]
Err:1 http://kali.download/kali kali-rolling InRelease
At least one invalid signature was encountered.
Reading package lists... Done
Building dependency tree... Done
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://kali.download/kali kali-rolling InRelease: At least one invalid signature was encountered.
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease At least one invalid signature was encountered.
W: Some index files failed to download. They have been ignored, or old ones used instead.
Also error in shell script:
└─# apt-key list
create_gpg_home:trap:14: undefined signal: ABRT
FIX:
Edit /usr/bin/apt-key
and comment/change line 78:
trap "${CURRENTTRAP}" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
to:
#trap "${CURRENTTRAP}" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
Try to apt update again.
@blunt1337
Copy link

Thanks mate, you saved my day. Any idea why the ABRT is triggered?

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