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: mysql-community-libs-compat-8.0.34-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

在这里插入图片描述
这个是由于GPG密钥验证问题引起的

解决方案

需要禁掉GPG验证检查

ls /etc/yum.repos.d/mysql-*

在这里插入图片描述

vi /etc/yum.repos.d/mysql-community.repo

找到[mysql80-community] 并修改:gpgcheck 改为 0 ,即不校验gpg
在这里插入图片描述
再次运行

yum install -y perl-DBD-mysql
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐