This question already has an answer here:

Why is this happening? I've updated my machine last week.

W: GPG error: http://repo.mysql.com trusty InRelease: The following signatures were invalid: KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 KEYEXPIRED 1487236823
share|improve this question

marked as duplicate by David Foerster, Zanna, Eric Carvalho, Kevin Bowen, mikewhatever Mar 18 '17 at 7:28

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.

3  
I located the post: "How to solve an expired key (KEYEXPIRED) with apt" linux-audit.com/how-to-solve-an-expired-key-keyexpired-with-‌​apt – Steve R. Feb 18 '17 at 23:03
    
Thanks! But I've already purged MySQL and after some googling & struggling, purged all it's repos & GPG from apt. – Kaveh Shahbazian Feb 18 '17 at 23:54
    
MySQL was on machine for more than one year. And suddenly at that time it got broken (not just me). But since I no longer use, I just purged it. – Kaveh Shahbazian Mar 16 '17 at 16:55

This solved my problem

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5

Source : click here

share|improve this answer
    
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 5072E1F5 – rioted May 16 '17 at 18:18

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