博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
yum 安装报 关于Public key for *.rpm is not installed 的解决方法
阅读量:7270 次
发布时间:2019-06-29

本文共 2398 字,大约阅读时间需要 7 分钟。

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 5.4

于是我执行下面命令

#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
问题终于得到解决!

 

转载于:https://www.cnblogs.com/JemBai/archive/2012/11/07/2759140.html

你可能感兴趣的文章
Android 从WebView缓存中获取网页图片
查看>>
让电脑提速的小方法-----QoS数据计划程序
查看>>
[一句秒懂]git命令
查看>>
重新format namenode后,datanode无法正常启动
查看>>
企业信息门户平台整体解决方案研究(概述与案例分享)
查看>>
Delphi常用快捷键
查看>>
内部类的概念
查看>>
产品--交互设计的真相
查看>>
MessageContext和传输头
查看>>
重装linux后,安装kvm虚拟机的详细过程
查看>>
[MAC] Install OpenSSL 1.0.1g on OS X 10.9
查看>>
GitLub
查看>>
elasticsearch验证模块x-pack
查看>>
详解hibernate实体映射文件
查看>>
Python正则表达式指南
查看>>
Hibernate基础配置——hibernate.cfg.xml
查看>>
获取Java程序运行的路径
查看>>
strerror_r
查看>>
java多线程编程总结
查看>>
Cygwin下调用gvim乱码
查看>>