10

This question already has an answer here:

sudo apt-get update

get this error:

W: GPG error: http://debian.datastax.com stable Release: The following signatures were invalid: KEYEXPIRED 1439480363 KEYEXPIRED 1439480363 KEYEXPIRED 1439480363

even after use --fix-missing, still have the same error.

marked as duplicate by womble Sep 9 '15 at 20:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @womble but it is not selected as right answer. – Zhang LongQI Sep 11 '15 at 4:30
  • That isn't how this site works. We don't duplicate questions just so a different answer can be accepted. – womble Sep 11 '15 at 4:44
23

Actually the problem come from What should I do when I got the KEYEXPIRED error message after an apt-get update?

I can not select the kynana's answer as the best answer so I just put it here. Thank you @Kynan https://serverfault.com/users/53358/kynan

To find any expired repository keys and their IDs, use apt-key as follows:

sudo apt-key list | grep expired

You will get a result similar to the following:

pub   4096R/BE1DB1F1 2011-03-29 [expired: 2014-03-28]

The key ID is the bit after the / i.e. BE1DB1F1 in this case.

To update the key, run

sudo apt-key adv --recv-keys --keyserver keys.gnupg.net BE1DB1F1

Not the answer you're looking for? Browse other questions tagged or ask your own question.