mysql, amazon linux,

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Mar 15, 2023 · 1 min read · Post a comment

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL 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. on Amazon Linux 2. Let’s solve the issue.


  • Take the rpm built-in GPG and MD5 checksum.
    rpm --import
  • Re-run the installation command.
    sudo yum install mysql-community-server


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.