当前位置:网站首页>【mysql 07】GPG key retrieval failed: “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“
【mysql 07】GPG key retrieval failed: “Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022“
2022-07-01 19:27:00 【Rusty well began】
1、现象
Centos 7.9 安装mysql 是出现异常,GPG key retrieval failed: [Errno 14] curl#37 - “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022”
原因:出现上述提示原因是Mysql的GPG升级了,需要重新获取
[[email protected] /]# yum install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.29-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.29-1.el7 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-icu-data-files = 8.0.29-1.el7 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.29-1.el7 will be installed
--> Processing Dependency: mysql-community-client-plugins = 8.0.29-1.el7 for package: mysql-community-client-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.29-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:8.0.29-1.el7 will be installed
---> Package mysql-community-icu-data-files.x86_64 0:8.0.29-1.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
--> 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.29-1.el7 will be installed
---> Package mysql-community-libs.x86_64 0:8.0.29-1.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:8.0.29-1.el7 will be obsoleting
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================== Package Arch Version Repository Size
==============================================================================================================================================================================================================================Installing:
mysql-community-libs x86_64 8.0.29-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.29-1.el7 mysql80-community 667 k
replacing mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-server x86_64 8.0.29-1.el7 mysql80-community 53 M
Installing for dependencies:
mysql-community-client x86_64 8.0.29-1.el7 mysql80-community 14 M
mysql-community-client-plugins x86_64 8.0.29-1.el7 mysql80-community 2.5 M
mysql-community-common x86_64 8.0.29-1.el7 mysql80-community 633 k
mysql-community-icu-data-files x86_64 8.0.29-1.el7 mysql80-community 2.1 M
net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k
Transaction Summary
==============================================================================================================================================================================================================================Install 3 Packages (+5 Dependent packages)
Total size: 75 M
Total download size: 70 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-icu-data-files-8.0.29-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY ] 2.2 MB/s | 11 MB 00:00:27 ETA
Public key for mysql-community-icu-data-files-8.0.29-1.el7.x86_64.rpm is not installed
(1/4): mysql-community-icu-data-files-8.0.29-1.el7.x86_64.rpm | 2.1 MB 00:00:03
(2/4): mysql-community-client-8.0.29-1.el7.x86_64.rpm | 14 MB 00:00:03
(3/4): net-tools-2.0-0.25.20131004git.el7.x86_64.rpm | 306 kB 00:00:03
(4/4): mysql-community-server-8.0.29-1.el7.x86_64.rpm | 53 MB 00:00:08
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 6.0 MB/s | 70 MB 00:00:11
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022"
2、解决方案
执行命令:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
之后再次下载mysql:
[[email protected] /]# rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
[[email protected] /]# yum install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.29-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.29-1.el7 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-icu-data-files = 8.0.29-1.el7 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-8.0.29-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.29-1.el7 will be installed
--> Processing Dependency: mysql-community-client-plugins = 8.0.29-1.el7 for package: mysql-community-client-8.0.29-1.el7.x86_64
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.29-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:8.0.29-1.el7 will be installed
---> Package mysql-community-icu-data-files.x86_64 0:8.0.29-1.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
--> 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.29-1.el7 will be installed
---> Package mysql-community-libs.x86_64 0:8.0.29-1.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:8.0.29-1.el7 will be obsoleting
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================== Package Arch Version Repository Size
==============================================================================================================================================================================================================================Installing:
mysql-community-libs x86_64 8.0.29-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.29-1.el7 mysql80-community 667 k
replacing mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-server x86_64 8.0.29-1.el7 mysql80-community 53 M
Installing for dependencies:
mysql-community-client x86_64 8.0.29-1.el7 mysql80-community 14 M
mysql-community-client-plugins x86_64 8.0.29-1.el7 mysql80-community 2.5 M
mysql-community-common x86_64 8.0.29-1.el7 mysql80-community 633 k
mysql-community-icu-data-files x86_64 8.0.29-1.el7 mysql80-community 2.1 M
net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k
Transaction Summary
==============================================================================================================================================================================================================================Install 3 Packages (+5 Dependent packages)
Total size: 75 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : mysql-community-common-8.0.29-1.el7.x86_64 1/9
Installing : mysql-community-client-plugins-8.0.29-1.el7.x86_64 2/9
Installing : mysql-community-libs-8.0.29-1.el7.x86_64 3/9
Installing : mysql-community-client-8.0.29-1.el7.x86_64 4/9
Installing : net-tools-2.0-0.25.20131004git.el7.x86_64 5/9
Installing : mysql-community-icu-data-files-8.0.29-1.el7.x86_64 6/9
Installing : mysql-community-server-8.0.29-1.el7.x86_64 7/9
Installing : mysql-community-libs-compat-8.0.29-1.el7.x86_64 8/9
Erasing : 1:mariadb-libs-5.5.68-1.el7.x86_64 9/9
Verifying : mysql-community-icu-data-files-8.0.29-1.el7.x86_64 1/9
Verifying : mysql-community-libs-compat-8.0.29-1.el7.x86_64 2/9
Verifying : net-tools-2.0-0.25.20131004git.el7.x86_64 3/9
Verifying : mysql-community-client-8.0.29-1.el7.x86_64 4/9
Verifying : mysql-community-client-plugins-8.0.29-1.el7.x86_64 5/9
Verifying : mysql-community-server-8.0.29-1.el7.x86_64 6/9
Verifying : mysql-community-common-8.0.29-1.el7.x86_64 7/9
Verifying : mysql-community-libs-8.0.29-1.el7.x86_64 8/9
Verifying : 1:mariadb-libs-5.5.68-1.el7.x86_64 9/9
Installed:
mysql-community-libs.x86_64 0:8.0.29-1.el7 mysql-community-libs-compat.x86_64 0:8.0.29-1.el7 mysql-community-server.x86_64 0:8.0.29-1.el7
Dependency Installed:
mysql-community-client.x86_64 0:8.0.29-1.el7 mysql-community-client-plugins.x86_64 0:8.0.29-1.el7 mysql-community-common.x86_64 0:8.0.29-1.el7 mysql-community-icu-data-files.x86_64 0:8.0.29-1.el7
net-tools.x86_64 0:2.0-0.25.20131004git.el7
Replaced:
mariadb-libs.x86_64 1:5.5.68-1.el7
Complete!
[[email protected] /]#
边栏推荐
- tensorflow 张量做卷积,输入量与卷积核维度的理解
- Uniapp uses Tencent map to select points without window monitoring to return users' location information. How to deal with it
- Détection des cibles - série Yolo
- What if win11 can't pause the update? Win11 pause update is gray. How to solve it?
- cocoaPods 添加成功后,导入不了头文件或者not found file 报错
- Develop those things: easycvr cluster device management page function display optimization
- 强大的万年历微信小程序源码-支持多做流量主模式
- 【多线程】 实现单例模式 ( 饿汉、懒汉 ) 实现线程安全的单例模式 (双重效验锁)
- 小鸟逃票登机,如何反思,应如何解决,飞机为何怕小鸟?
- leetcode刷题:栈与队列03(有效的括号)
猜你喜欢
Entering Ruxin Town, digital intelligence transformation connects "future community"
latex如何打空格
2022安全员-B证考试练习题模拟考试平台操作
Error in installing sharp
大厂做狼,小厂做狗?
RichView RichEdit SRichViewEdit PageSize 页面设置与同步
Detailed explanation and code example of affinity propagation clustering calculation formula based on graph
Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
NSI脚本的测试
2022年低压电工考试试题及答案
随机推荐
Problems encountered in installing MySQL in docker Ubuntu container
fastDFS入门
leetcode刷题:栈与队列03(有效的括号)
2022/6/8-2022/6/12
Write blog documents
PHP获取微信小程序和小程序商店外链地址
Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
关联线探究,如何连接流程图的两个节点
合成大西瓜小游戏微信小程序源码/微信游戏小程序源码
编译原理复习笔记
Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
EDA工具对芯片产业的重要性知识科普
Principle of motion capture system
Error in installing sharp
docker ubuntu容器中安装mysql遇到的问题
Target detection - Yolo series
NSI脚本的测试
关于new Set( )还有哪些是你不知道的
RichView RichEdit SRichViewEdit PageSize 页面设置与同步
BC35&BC95 ONENET MQTT(旧)