Linux安装mysql报错:失败的软件包是:mysql-community-libs-8.0.37-1.el7.x86_64 GPG

【MySQL 08】GPG key retrieval failed: “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“ 下载MySQL 时出现:GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RP 阅读详情

报错:

Public key for mysql-community-libs-8.0.37-1.el7.x86_64.rpm is not installed


 Failing package is: mysql-community-libs-8.0.37-1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

解决

#更新mysql密钥
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023

重新安装

[root@stars-game ~]# yum install mysql-community-client
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.37-1.el7 will be installed
--> Processing Dependency: mysql-community-client-plugins = 8.0.37-1.el7 for package: mysql-community-client-8.0.37-1.el7.x86_64
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.37-1.el7.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-9.el7.x86_64
---> Package mysql-community-client-plugins.x86_64 0:8.0.37-1.el7 will be installed
---> Package mysql-community-libs.x86_64 0:8.0.37-1.el7 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) >= 8.0.11 for package: mysql-community-libs-8.0.37-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-common.x86_64 0:8.0.37-1.el7 will be installed
---> Package mysql-community-libs-compat.x86_64 0:8.0.37-1.el7 will be obsoleting
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================
 Package                                                  Arch                             Version                                Repository                                   Size
====================================================================================================================================================================================
Installing:
 mysql-community-client                                   x86_64                           8.0.37-1.el7                           mysql80-community                            16 M
 mysql-community-libs                                     x86_64                           8.0.37-1.el7                           mysql80-community                           1.5 M
     replacing  mariadb-libs.x86_64 1:5.5.68-1.el7
 mysql-community-libs-compat                              x86_64                           8.0.37-1.el7                           mysql80-community                           670 k
     replacing  mariadb-libs.x86_64 1:5.5.68-1.el7
Installing for dependencies:
 mysql-community-client-plugins                           x86_64                           8.0.37-1.el7                           mysql80-community                           3.5 M
 mysql-community-common                                   x86_64                           8.0.37-1.el7                           mysql80-community                           666 k

Transaction Summary
====================================================================================================================================================================================
Install  3 Packages (+2 Dependent packages)

Total size: 22 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mysql-community-client-plugins-8.0.37-1.el7.x86_64                                                                                                               1/6 
  Installing : mysql-community-common-8.0.37-1.el7.x86_64                                                                                                                       2/6 
  Installing : mysql-community-libs-8.0.37-1.el7.x86_64                                                                                                                         3/6 
  Installing : mysql-community-libs-compat-8.0.37-1.el7.x86_64                                                                                                                  4/6 
  Installing : mysql-community-client-8.0.37-1.el7.x86_64                                                                                                                       5/6 
  Erasing    : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                               6/6 
  Verifying  : mysql-community-libs-8.0.37-1.el7.x86_64                                                                                                                         1/6 
  Verifying  : mysql-community-libs-compat-8.0.37-1.el7.x86_64                                                                                                                  2/6 
  Verifying  : mysql-community-client-8.0.37-1.el7.x86_64                                                                                                                       3/6 
  Verifying  : mysql-community-client-plugins-8.0.37-1.el7.x86_64                                                                                                               4/6 
  Verifying  : mysql-community-common-8.0.37-1.el7.x86_64                                                                                                                       5/6 
  Verifying  : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                               6/6 

Installed:
  mysql-community-client.x86_64 0:8.0.37-1.el7              mysql-community-libs.x86_64 0:8.0.37-1.el7              mysql-community-libs-compat.x86_64 0:8.0.37-1.el7             

Dependency Installed:
  mysql-community-client-plugins.x86_64 0:8.0.37-1.el7                                         mysql-community-common.x86_64 0:8.0.37-1.el7                                        

Replaced:
  mariadb-libs.x86_64 1:5.5.68-1.el7                                                                                                                                                

Complete!
Failing package is: mysql-community-common-8.0.33-1.el7.x86_64 GPG Keys are configured as: file:///e 可能是由于 GPG 密钥验证的问题导致无法更新 MySQL 包。这个问题出现在用linux服务器 执行。但依旧出现了这个问题 说明跟缓存没关系。忽略 GPG 密钥验证来更新软件包。如果还是不行 可以试试。 阅读详情

相关推荐

CentOS7.9 MySql安装

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

qq_38167086的博客 2704

解决GPG key retrieval failed: [Errno 14] curl#37 问题

在centos7中安装程序时经常会遇到这个问题:(此处是安装MySQL) GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022" 原因是yum源开启了GPG校验,开启校验后需要在/etc/pki/rpm-gpg 目录下有对应的安装文件公钥文件,才能完成校验。 在个人环境下可以直接关闭yum源中的GPG校验规避这个问题。如关闭MySQL yum源

qq_35009393的博客 1万+

深度学习二分类实战:用Python+Keras搞定基因表达数据预测(附完整代码)

本文详细介绍了如何使用Python和Keras构建深度学习模型进行基因表达数据的二分类预测。通过数据预处理、特征选择、神经网络构建及优化策略,特别针对小样本场景提供了调参技巧和模型解释方法。文章还包含完整的代码示例,帮助读者快速掌握深度学习在生物信息学中的应用。

weixin_30642561的博客 245

GPG key retrieval failed: [Errno 14] curl#37 - “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

rpm-gpg/RPM-GPG-KEY-EPEL-7文件导致的 ,只要去补全这个文件就可以了。从报错的内容来看是因为缺少一个/etc/

m0_59890784的博客 1658

在昇腾910B服务上部署搭建适配PDF解析工具Mineru2.5开源项目

本文介绍了在昇腾910B服务器上部署开源PDF解析工具Mineru2.5的过程。首先从昇腾社区下载mindie镜像并运行容器,安装系统依赖。针对部署过程中遇到的多个报错问题(如torchvision与torch版本不匹配、昇腾软件栈与NumPy 2.0不兼容等),提供了具体解决方案和兼容版本。通过设置环境变量、安装指定版本的Python依赖包,成功部署Mineru项目并下载模型。最后运行测试,验证了在NPU设备上运行pipeline的可行性。整个过程详细记录了版本适配和错误处理方法,为类似部署场景提供了参考

一起加油吧 2163

TT电机、310电机、370电机在智能小车与机器人中的性能对比与选型指南

本文深入对比了TT电机、310电机和370电机在智能小车与机器人项目中的核心性能差异。文章从尺寸、扭矩、转速、电压电流等关键参数入手,结合不同应用场景(如入门小车、竞技机器人、机械臂),提供了清晰的选型指南和驱动控制建议,帮助开发者根据项目需求选择最合适的电机方案。

weixin_29065015的博客 407

解决Linux安装mysql报错:失败的软件包是:mysql-community-libs-8.0.37-1.el7.x86_64 GPG例子解析

有时候,防火墙或SELinux的设置可能会阻止正确安装软件包。:如果你确定下载的软件包是安全的,可以通过禁用GPG检查来绕过这个问题。:有时候,GPG错误可能是由于依赖关系问题引起的。:确保你已经导入了MySQL的官方GPG密钥。:确保你的系统时间是准确的,因为密钥验证可能会因为时间不同步而失败。请注意,这种方法可能会降低安全性,因为你不会验证软件包的签名。:确保你的软件源列表是最新的,并且指向正确的MySQL存储库。这将导入MySQL的公钥,允许你验证软件包的签名。

IT老农民的博客 5632

【科研】Michaelis–Menten 曲线(米氏曲线)中反应速率的计算

Michaelis–Menten 曲线 米氏曲线 纵坐标 反应速率求值 朗伯比尔定律

weixin_42809675的博客 2万+

报错GPG key retrieval failed: [Errno 14] curl#37 - “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-7“

原因是yum源开启了GPG校验,将源里的gpgcheck=1改成gpgcheck=0即可。然后yum -y install+软件包即可。

weixin_57401160的博客 2239

用AI+Playwright实现零代码UI自动化测试:以登录页面为例的实战指南

本文详细介绍了如何利用AI与Playwright结合实现零代码UI自动化测试,特别以登录页面为例进行实战演示。通过自然语言描述生成测试脚本,大幅降低技术门槛,提升测试效率,并支持跨浏览器验证。适合非技术人员快速上手专业级自动化测试。

weixin_28842269的博客 400

分子动力学仿真软件:LAMMPS_(16).应用案例分析

通过以上四个应用案例,我们详细介绍了如何使用LAMMPS进行不同系统的分子动力学仿真。从简单的液体水仿真到复杂的纳米管仿真,每个案例都包含了详细的步骤说明和代码示例。读者可以通过这些示例实际操作并验证结果,从而更好地理解LAMMPS的功能和使用方法。希望这些案例能够为读者在分子动力学仿真领域的研究和应用提供帮助。

kkchenjj的博客 836

Mysql安装失败-GPG验证不通过或Failed to start mariadb.service: Unit not fou

1.报错原因 报错原文 Key imported successfully Import of key(s) didn't help, wrong key(s)? Public key for mysql-community-client-5.7.37-1.el7.x86_64.rpm is not installed. Failing package is: mysql-communit...

sunliusen的博客 577

30天入门 SAP BTP 开发系列之七:动手在 SAP BTP 上开发第一个 ABAP 程序

本教程从理论转向实践,指导如何在SAP BTP上创建首个ABAP程序。首先通过Booster向导在Trial账号中配置ABAP环境,需确保已启用Cloud Foundry并创建Space。成功创建ABAP实例后,使用ABAP Development Tool连接环境:下载服务密钥文件,导入工具获取连接URL,即可建立项目开始编码。教程提供了从环境搭建到开发工具配置的完整流程,帮助ABAP开发者快速上手BTP云开发。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 1667

获取 GPG 密钥失败:[Errno 14] curl#37 - “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“

获取 GPG 密钥失败:[Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022"

qq_48359654的博客 5774

Mac电脑安装burp suite2024版本记录

下载最新版本burpsuitloader-XXX-all.jar,改名为burpsuitloader.jar。目录下,修改vmoptions.txt文件,新增以下内容,如果keygen不是这个名称的话,需要修改。,点击license左侧的copy复制它,然后手动从启动台启动burpsuite。,复制如下命令到终端即可(要加双引号,不然目录中空格会导致命令截断)再复制激活响应信息到burpsuite中即可激活。后续运行burp直接从启动台运行即可。将如下框的信息复制到激活器中。输入后下一步,点击手动激活。

墨痕诉清风的博客 899

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPE

问题 GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 解决方法 把这个key从源站copy过来,放到/etc/pki/rpm-gpg目录下 修改repo文件 # vim /etc/yum.repos.d/epel.rep...

yjk13703623757的博客 1万+

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

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

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-server-8.0.34-1.el7.

charon869的博客 5985

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

CentOS7安装MySQL8.0

CentOS7.6快速安装MySQL8.0

大脑不能为空 2229

获取 GPG 密钥失败:[Errno 14] curl#37 - “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-centos7“

我在执行如下命令式报错。

鱼儿飞的博客 947

Centos7 通过RPM安装MySQL失败

运行安装命令:yum install mysql-community-server 最后出现如下图所示提示。,原因是Mysql的GPG升级了,通过下列命令重新获取GPG。再次运行安装命令,显示成功。

rongDang的博客 2814

yum install 安装服务时报错: [Errno 14] curl#37 - “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7“

Linux的yum

jiang0615csdn的博客 6776

解决Centos下载MySQL8.0时公钥报错未安装或不正确问题

这篇blog是2024年!!!!

m0_53190754的博客 7210

Linux yum 使用时提示 获取 GPG 密钥失败Couldn‘t open file RPM-GPG-KEY-EPEL-7

把gpgcheck=1 改为gpgcheck=0 即可,意思是在安装的时候不进行源的检查。这个就是安装的时候会检查key这个可以再repo文件中关闭即可。

ALex_zry的博客 1496

CentOS7安装MySQL8报错

The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

qq_68633809的博客 1685

在CentOS中安装MySQL报错: Failing package is: mysql-community-common-5.7.42-1.el7.x86_64 GPG Keys are conf

执行数据库安装命令yum -y install mysql-community-server 时,未安装成功。

best_dayc_cm的博客 2285
上一篇: Python占位符 %s、%d、%f、%r
下一篇: mysql:2059 -Authentication plugin ‘caching sha2 password‘ cannot be loaded
IChen.
博客等级 码龄7年 2019粉丝 1017原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值