码迷,mamicode.com
首页 > 其他好文 > 详细

更新YUM源后的arning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY错误

时间:2018-02-04 15:38:34      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:报错   pack   nokey   源文件   key文件   更新   bsp   sea   rsa   

  yum源更新后需要导入key值,否则报错如下,无法安装相关的包。

  Totalsize:42M

  DownloadingPackages:

  warning:rpmts_HdrFromFdno:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEY

  Retrievingkeyfromfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

  GPGkeyretrievalfailed:[Errno14]Couldnotopen/readfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

  解决办法:

  先安装如下工具包:

  rpm-Uhvhttp://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.4-1.el4.rf.i386.rpm

  [root@localhostyum.repos.d]#rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-6

  一般来说安装完成后即可,安装完这个就可以了。

  如果还是不行,查看系统的

  编辑yum源文件:替换RPM-GPG-KEY-CentOS-5替换为对应的key文件名:RPM-GPG-KEY-CentOS-6(要全部替换)

  root@localhostyum.repos.d]#viCentOS-Base-sohu.repo

  [base]

  name=CentOS-$releasever-Base-sohu.com

  mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

  baseurl=http://mirrors.sohu.com/centos/$releasever/os/$basearch/

  gpgcheck=1

  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

author gj

更新YUM源后的arning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY错误

标签:报错   pack   nokey   源文件   key文件   更新   bsp   sea   rsa   

原文地址:https://www.cnblogs.com/widgetbox/p/8413172.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!