17

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
3
  • 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. 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. Mar 16 '17 at 16:55
42

This solved my problem

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

Source : click here

4
  • sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 5072E1F5
    – rioted
    May 16 '17 at 18:18
  • 6
    I had to use a different keyserver. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5072E1F5
    – rep
    Mar 6 '19 at 21:57
  • 1
    The above comment is the correct answer.
    – Sorter
    Mar 10 '19 at 8:13
  • 1
    Another automatic way is to refresh keys that are already present: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --refresh-keys Oct 10 '19 at 11:00

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