Kali Linux The following signatures were invalid

when I run this command on Kali Linux

sudo apt update

I get following error

Err:6 http://us.archive.ubuntu.com/ubuntu precise-updates InRelease The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5


gpg --fingerprint 630239CC130E1A7FD81A27B140976EAF437D05B5
  • pub dsa1024 2004-09-12 [SC]
  • 6302 39CC 130E 1A7F D81A 27B1 4097 6EAF 437D 05B5
  • uid [ unknown] Ubuntu Archive Automatic Signing Key ftpmaster@ubuntu.com
  • sub elg2048 2004-09-12 [E]


gpg --keyserver keyserver.ubuntu.com --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5
  • gpg: key 40976EAF437D05B5: “Ubuntu Archive Automatic Signing Key ftpmaster@ubuntu.com” not changed
  • gpg: Total number processed: 1
  • gpg: unchanged: 1


 gpg --export --armor 630239CC130E1A7FD81A27B140976EAF437D05B5 | sudo apt-key add -

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK

Same result when i run apt update


Do not use Ubuntu repositories on Kali Linux, it will break apt.

Non-Kali Repositories

Likewise, adding other operating system’s repositories into Kali (such
as trying to put Ubuntu on Kali), will break your installation. This 
is the single most common reason why Kali Linux systems break.

To solve this problem keep only Kali repository:

echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee  /etc/apt/sources.list
sudo rm /etc/apt/sources.list.d/*
sudo apt update

Leave a Reply

Your email address will not be published. Required fields are marked *