The GPG keys listed for the “MySQL 8.0 Community Server” repository are already installed but they are not correct

During update process I got below error message

The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: mysql-community-client-8.0.28-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Solution

Import new key

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

after import new key I was able to perform update of the server

yum update

Leave a Reply

Your email address will not be published. Required fields are marked *