GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql (0x5072E1F5) is already installed

在进行系统更新时出现如下错误:

MySQL 8.0 Community Server                                                                                          27 MB/s |  27 kB     00:00    
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql (0x5072E1F5) is already installed
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: mysql80-community-release-el7-11.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED


大概意思就是时候GPG验证失败了,我们可以直接导入最新的GPG Key即可解决
执行如下命令

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

 

 

 


爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情Blog Img