报错信息:

[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 ResolutionDependencies 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 Mnet-snmp-libs                        x86_64                        1:5.3.2.2-9.el5_5.1                        update                        1.3 MTransaction 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

linux centos7 yum 报错 Public key for *.rpm is not installed 解决方法相关推荐

  1. linux centos yum 报错 [Errno 256] No more mirrors to try 解决方法

    目录 背景 报错信息 解决方案大致有三种 一.更新yum 二.若不行,可能是因为DNS不稳定吧,因为yum安装时会从三个"repo源"(base,extras,updates)随机 ...

  2. linux 安装rpm no key,yum 安装报 关于Public key for *.rpm is not installed 的解决方法

    yum 安装报 关于Public key for *.rpm is not installed 的解决方法 发布时间:2012-10-24 19:52:13来源:红联作者:静静飞舞 [root@0fl ...

  3. linux shell脚本 报错dirname:无效选项 -- b 错误原因 解决方法

    今天在写一个Shell脚本的时候,发现调试的时候会报一个错 [oracle@smidb11 autoawrrpt]$ . a.sh dirname:无效选项 -- b 请尝试执行"dirna ...

  4. Linux 安装yum报错Could not resolve host 转载

    Linux 安装yum报错Could not resolve host 已加载插件:langpacks http://update.cs2c.com.cn:8080/NS/V7/V7Update4/o ...

  5. 【报错解决】linux网络编程报错storage size of ‘serv_addr’ isn’t known解决办法

    linux网络编程报错storage size of 'serv_addr' isn't known解决办法 报错如下: server.c:18:21: error: storage size of ...

  6. 关于Public key for *.rpm is not installed 的解决方法

    今天在安装mysql提示错误 Public key for mysql-server-5.0.45-7.el5.i386.rpm is not installed 解决方法: 此时要导入rpm的签名信 ...

  7. mysql table plugin,MySql报错Table mysql.plugin doesn’t exist的解决方法

    MySql报错Table mysql.plugin doesn't exist的解决方法 一般产生原因是手工更改my.ini的数据库文件存放地址导致的 mysql服务启动时候找不到内置数据库" ...

  8. vue 报错 Cannot read property ‘__ob__‘ of undefined的解决方法

    vue 报错 Cannot read property '__ob__' of undefined的解决方法 参考文章: (1)vue 报错 Cannot read property '__ob__' ...

  9. python 报错 AttributeError: module ‘time‘ has no attribute ‘clock 解决方法

    源码如下: #引入所需要的时间库 import datetime import time#程序计时器,启动计时器 start = time.clock()#中间是放置需要测试运行时间的程序代码#计算启 ...

最新文章

  1. little w and Soda(思维题)
  2. 分表分库之一:分布式数据库的常见用法
  3. 使用代理软件之后其他软件不能联网的解决方法
  4. 清华学姐的研究生复试经验!
  5. 不是“老赖”是“真还”!罗永浩 6 亿债务还了 4 亿
  6. 10.5 QQ 支持
  7. sap权限激活_如何激活凭证流Fiori应用
  8. Java基础————理解Integer对象的缓存策略
  9. 复述-简历-面试-常见问答整理
  10. CCF NOI1075 F函数
  11. 2020年三非上岸北邮计算机院考研经验贴(励志)
  12. 度分秒地理位置转wgs84坐标和2000坐标,2000坐标转wgs84坐标
  13. STC15单片机内部RAM讲解
  14. win7打印机显示服务器脱机怎么办,手把手教你设置win7系统网络打印机脱机的修复教程...
  15. 洛谷 U84985 Seaway找路
  16. 三坐标检测之精密零件测量的恒温时间
  17. 第149篇 笔记-web3
  18. Vue 开始时间与结束时间比较验证
  19. 求整型矩阵主对角线元素之和
  20. 学习计划【硬件课程设计】【课设】

热门文章

  1. C语言 多维数组和指针
  2. shell-while循环
  3. Linux内存手动释放方法
  4. ETSI GS MEC 011,Edge Platform Application Enablement API
  5. VMware 虚拟化编程(12) — VixDiskLib Sample 程序使用
  6. Python Module_Socket_网络编程
  7. Python 进阶_OOP 面向对象编程_实例属性和方法
  8. Oracle 用户概念与基本操作
  9. G代码运行模拟软件-NC Viewer
  10. TLS 1.3 Handshake Protocol (下)