It is often the case when you try to install a package that the gpg keys are changed or not working anymore. Below is such an error that might show up:
The GPG keys listed for the "MySQL 5.7 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.
You have several options to fix this:
- Disable the gpg check in the repository by changing "gpgcheck=1" into "gpgcheck=0"
- Reimport the key using below command:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
You might need to redownload the latest key for the repo, in this case from:
https://repo.mysql.com/RPM-GPG-KEY-mysql