The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package

created at 01-24-2022 views: 9

problem

When installing mysql8, I did not encounter this problem before, but this time I suddenly encountered a new problem (maybe mysql5.7 was installed before?):

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

solution

1.You can try this first:

sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

Then in yum install mysql-community-server

2.If not, you can use this:

sudo yum -y install * --nogpgcheck

replace * with mysql-server or mysql-community-server, depend on your needs.

GPG keys are the keys generated when the installation package is released, and the installation needs to check the keys to ensure security

created at:01-24-2022
edited at: 01-24-2022: