Linux – Kali Linux Update Fails

kali-linux

Error http://http.kali.org kali/main Sources
  404  Not Found
Fetched 1,673 B in 42s (39 B/s)
W: GPG error: http:// http. kali. org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
W: GPG error: http://security. kali. org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
W: Failed to fetch copy:/var/lib/apt/lists/partial/http.kali.org_kali_dists_kali_main_binary-amd64_Packages  Encountered a section with no Package: header
W: Failed to fetch http:// http. kali. org/kali/dists/kali/main/source/Sources  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

root@kali:~# 

How can I update my Kali repo?

Best Answer

You can inspect the apt-keyring with: apt-key list

This should fix your issue:

apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

Then do aptitude update (this was useful for me and fix my problem with expired keys. In the link appears other solutions, try it if you want)

Source: https://forums.kali.org/showthread.php?24687-Problem-with-apt-get-update

Related Question