小工具知识网

当前位置: 首页 > 行业知识 > 解决MySQL: Failing package is: mysql-community-server-8.0.34-1.el7.x86

行业知识

解决MySQL: Failing package is: mysql-community-server-8.0.34-1.el7.x86

2026-11-12 19:23:09 来源:互联网转载

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 cindex.php/tags-1038.html" >orrect key URLs are configured for this repository.

 Failing package is: mysql-community-server-8.0.34-1.el7.x86_64

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

这个是由于由于GPG密钥验证问题引起的

解决方法1:

需要禁掉GPG验证检查,指令:

# yum -y install mysql-community-server --nogpgcheck

解决方法2:

查看自己的mysql版本获取与自己版本匹配的RPM-GPG-KEY-mysql密钥

更新密钥:确保MySQL存储库的GPG密钥是正确的

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

更新存储库:

sudo yum update

上一篇:数据结构与算法-哈希表

下一篇:服务器程序怎么启动?