失败的软件包是:mysql-community-client-plugins-8.0.40-1.el7.x86_64 GPG 密钥配置为:file:///etc/pki/rpm-gpg/RPM-G

在安装Mysql时出现,软件包安装失败,导入GPG后还是报错。

[root@web01 ~]# yum -y install mysql-community-server

 然后报错:

从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 检索密钥


源 "MySQL 8.0 Community Server" 的 GPG 密钥已安装,但是不适用于此软件包。请检查源的公钥 URL 是否配置正确。


 失败的软件包是:mysql-community-client-plugins-8.0.40-1.el7.x86_64
 GPG  密钥配置为:file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

解决方式:

1.清理YUM缓存

[root@web01 ~]# yum clean all
已加载插件:fastestmirror
正在清理软件源: base epel extras mysql-connectors-community mysql-tools-community mysql80-community
               : nginx-stable remi-php74 remi-safe updates
Cleaning up list of fastest mirrors

2.重新生成缓存

[root@web01 ~]# yum makecache
已加载插件:fastestmirror
Determining fastest mirrors
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * remi-php74: mirrors.tuna.tsinghua.edu.cn
 * remi-safe: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.aliyun.com
base                                                                           | 3.6 kB  00:00:00     
epel                                                                           | 4.3 kB  00:00:00     
extras                                                                         | 2.9 kB  00:00:00     
mysql-connectors-community                                                     | 2.6 kB  00:00:00     
mysql-tools-community                                                          | 2.6 kB  00:00:00

3.导入Mysql GPG 密钥

[root@web01 ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

4.yum安装Mysql

[root@web01 ~]# yum -y install mysql-community-server --nogpgcheck

以上解决方式仅供参考

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值