yum 安装报 关于Public key for *.rpm is not installed 的解

简介:

yum 安装  net-snmp的时候报错

 

[root@localhost backup]# yum -y install net-snmp
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package net-snmp.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
--> Processing Dependency: net-snmp-libs = 1:5.3.2.2-9.el5_5.1 for package: net-snmp
--> Processing Dependency: libsensors.so.3()(64bit) for package: net-snmp
--> Running transaction check
---> Package lm_sensors.x86_64 0:2.10.7-9.el5 set to be updated
---> Package net-snmp-libs.i386 1:5.3.2.2-9.el5_5.1 set to be updated
---> Package net-snmp-libs.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
 Package                              Arch                          Version                                    Repository                     Size
===================================================================================================================================================
Installing:
 net-snmp                             x86_64                        1:5.3.2.2-9.el5_5.1                        update                        702 k
Installing for dependencies:
 lm_sensors                           x86_64                        2.10.7-9.el5                               base                          525 k
Updating for dependencies:
 net-snmp-libs                        i386                          1:5.3.2.2-9.el5_5.1                        update                        1.3 M
 net-snmp-libs                        x86_64                        1:5.3.2.2-9.el5_5.1                        update                        1.3 M

Transaction Summary
===================================================================================================================================================
Install       2 Package(s)
Upgrade       2 Package(s)

Total size: 3.7 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
update/gpgkey                                                                                                               | 1.8 kB     00:00    


Public key for net-snmp-libs-5.3.2.2-9.el5_5.1.x86_64.rpm is not installed

 

 

以上是完整的报错信息。

 

在网上找到了解决方法:

此时要导入rpm的签名信息即可

以root登录,执行下面命令
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


根据我的Linux版本是CentOS 7.4

于是我执行下面命令
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


本文转自 Mr_sheng 51CTO博客,原文链接:http://blog.51cto.com/sf1314/2046246


相关文章
|
16天前
|
Linux C语言
linux yum安装ffmpeg 图文详解
linux yum安装ffmpeg 图文详解
38 0
|
16天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
57 0
|
4月前
|
Web App开发 前端开发 Java
Linux 实操篇-RPM 与YUM
Linux 实操篇-RPM 与YUM
42 0
|
5月前
|
Linux
解决CentOS yum安装Mysql8提示“公钥尚未安装”或“密钥已安装,但是不适用于此软件包”的问题
解决CentOS yum安装Mysql8提示“公钥尚未安装”或“密钥已安装,但是不适用于此软件包”的问题
1451 0
|
2天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
18 0
|
4天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
16 1
|
7天前
|
应用服务中间件 nginx
yum 安装报错 No package nginx available Error:Nothing to do
yum 安装报错 No package nginx available Error:Nothing to do
21 1
|
16天前
|
关系型数据库 MySQL Linux
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
76 0
|
28天前
|
Linux
Linux: yum查看、安装、删除软件包
Linux: yum查看、安装、删除软件包
30 0
|
5月前
|
Linux
Centos8安装yum源时候出现的异常问题及解决方案(保好使)
Centos8安装yum源时候出现的异常问题及解决方案(保好使)