项目场景:
自己搭建个人网站,安装MySql时候遇到的问题
问题描述
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-server-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
原因分析:
版本问题 今年2022 明年2023
解决方案:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
在2022年和2023年间,个人搭建网站安装MySQL 5.7时遇到GPG钥匙不匹配的问题。错误提示表明已经安装的GPG钥匙与当前包不符。解决方案是通过运行`rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022`来导入正确的GPG钥匙。
603





