Why MySQL Repository Key suddenly expired?

30,007

This solved my problem

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

Source : click here

Share:
30,007

Related videos on Youtube

Kaveh Shahbazian
Author by

Kaveh Shahbazian

Updated on September 18, 2022

Comments

  • Kaveh Shahbazian
    Kaveh Shahbazian over 1 year

    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
    
    • Steve R.
      Steve R. over 7 years
      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
    • Kaveh Shahbazian
      Kaveh Shahbazian over 7 years
      Thanks! But I've already purged MySQL and after some googling & struggling, purged all it's repos & GPG from apt.
    • Kaveh Shahbazian
      Kaveh Shahbazian about 7 years
      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.
  • rioted
    rioted about 7 years
    sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 5072E1F5
  • rep
    rep about 5 years
    I had to use a different keyserver. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5072E1F5
  • Sorter
    Sorter about 5 years
    The above comment is the correct answer.
  • Franc Drobnič
    Franc Drobnič over 4 years
    Another automatic way is to refresh keys that are already present: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --refresh-keys