1. 程式人生 > >yum源安裝故障:warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY

yum源安裝故障:warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY

nokey public key

一:操作:

用yum安裝pssh服務:

[[email protected] ~]# yum install pssh

二:故障信息:

warning:
rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
 
 
Public
key for pssh-2.3.1-5.el6.noarch.rpm is not installed

三:故障分析:

看見“NOKEY”後,就想是不是沒有導公鑰,然後,就用rpm -qa gpg-pubkey*查詢是否導入公鑰

[[email protected] ~]# rpm -qa gpg-pubkey*

第一次,確實沒有導入,然後,就執行 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7(我用的Centos 7版本,根據自己版本導入)

[[email protected] ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

本以為,這樣就OK了,所以繼續執行yum install pssh,結果還是報同樣的問題。所以就很糾結啊,說沒公鑰,我導入公鑰了,還是不行,我上網搜,也是說各種導公鑰,都試了,並沒什麽卵用。然後無意間跟同學聊天,說了一下這個問題,結果,超出意料外的簡單!!!

四:故障解決:

在配置yum倉庫時,忘記在yum倉庫文件寫gpgcheck=0了,因為默認是gpgcheck=1的(即:在安裝時要檢查公鑰)。(笨蛋,學著忘著,感覺自己瞬間沒自信了)。下面是我自己的yum倉庫文件(因為現在所學的很多服務都依賴epel源,所以,索性就兩個都配上)

[[email protected] ~]# cat /etc/yum.repos.d/sjj.repo 
[base]
name= Centos 7
baseurl=file:///run/media/root/CentOS\ 7\ x86_64
gpgcheck=0
[epel]
name=Centos 7.1
baseurl=http://172.17.0.1/fedora-epel/7/x86_64/
gpgcheck=0
[[email protected] ~]# 
[[email protected] ~]# yum clean all           #清空一下緩存
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel
Cleaning up everything
Cleaning up list of fastest mirrors
[[email protected] ~]# yum makecache             #然後再制造緩存(從yum倉庫裏讀取)
Loaded plugins: fastestmirror, langpacks
base                                                  | 3.6 kB     00:00     
epel                                                  | 4.3 kB     00:00     
(1/9): base/group_gz                                    | 155 kB   00:00     
(2/9): base/primary_db                                  | 5.6 MB   00:00     
(3/9): epel/group_gz                                    | 170 kB   00:00     
(4/9): base/filelists_db                                | 6.6 MB   00:00     
(5/9): base/other_db                                    | 2.4 MB   00:00     
(6/9): epel/updateinfo                                  | 757 kB   00:00     
(7/9): epel/primary_db                                  | 4.6 MB   00:00     
(8/9): epel/filelists_db                                | 7.6 MB   00:01     
(9/9): epel/other_db                                    | 2.1 MB   00:00     
Determining fastest mirrors
Metadata Cache Created
[[email protected] ~]#

執行過上述操作後,再yum install pssh就OK。

本文出自 “13162997” 博客,請務必保留此出處http://13172997.blog.51cto.com/13162997/1969820

yum源安裝故障:warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY