Saturday, March 07, 2015

Fix update/upgrade errors in Kali Linux

[This is post is for older release. If you are looking for fixing errors in Rolling Release (2016.1) go to this link: http://com.puter.tips/2016/08/fix-updateupgrade-errors-in-kali-linux.html]

If you are among the users who are getting errors while updating or upgrading in Kali Linux then your worries are over. I had the same issue and have found a solution.

The errors occurs when performing any of the following commands:
#apt-get update
#apt-get upgrade
#apt-get dist-upgrade

and even if you try --fix-missing parameter with above commands it does not help!

One of the error looks like:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400

I struggled with it a little bit and then went down googling and as a result found maiden link that provided solution which was https://forums.kali.org/showthread.php?24687-Problem-with-apt-get-update

The post was merely a day old and I tried first out of the two given solutions and it worked for me.

I tried the following solution and it worked:
# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

You may visit the link https://forums.kali.org/showthread.php?24687-Problem-with-apt-get-update to find the other solution.