Linux安装Mysql5.7时出现报错The GPG keys listed for the MySQL 5.7 Community Server

温馨提示:文章已超过1472天没有更新,可能存在链接失效,相关教程仅供参考

问题描述

Linux安装Mysql5.7时出现如下报错

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.


 Failing package is: mysql-community-libs-5.7.37-1.el7.x86_64

 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

image.png

问题原因

这是由于MySQL GPG 密钥已过期导致的 问题解决出处 https://bugs.mysql.com/bug.php?id=106188

解决办法

需要如下运行命令, 以2022年为例

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

然后重新执行

yum -y install mysql-community-server -y


© 除非注明,否则均为阿豪运维笔记原创文章,转载或复制请以超链接形式并注明出处

取消
微信二维码
微信二维码
支付宝二维码