1. Home
  2. MySQL Tutorials
  3. MySQL – apt-get KEYEXPIRED

MySQL – apt-get KEYEXPIRED

While Installing MySQL 5.7 and MySQL 8.0 if you are getting below errors of apt-get KEYEXPIRED. Follow below steps to fix.

Error: W: GPG error: http://repo.mysql.com/apt/ubuntu xenial InRelease: The following signatures were invalid: KEYEXPIRED 1550412832  KEYEXPIRED 1550412832  KEYEXPIRED 1550412832

W: The repository ‘https://repo.mysql.com/apt/ubuntu xenial InRelease’ is not signed.

Step 1: Find the Expired KEY

$ sudo apt-key list | grep -A 1 expired

Output:

pub   1024D/5072E1F5 2003-02-03 [expired: 2019-02-17]

uid                  MySQL Release Engineering <[email protected]>

Step 2: Renew the Expired KEY

To Renew the expired key,

$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5072E1F5

Output:

Executing: /tmp/tmp.XwFcFWU4xU/gpg.1.sh --keyserver

keys.gnupg.net

--recv-keys

5072E1F5

gpg: requesting key 5072E1F5 from hkp server keys.gnupg.net

gpg: key 5072E1F5: "MySQL Release Engineering <[email protected]>" 28 new signatures

gpg: Total number processed: 1

gpg:         new signatures: 28

Step 3: Re-Update the System

Update the System repositories again.

$ sudo apt-get update
Was this article helpful to you? Yes No

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.