首頁 > Linux 進階操作技巧 > Error:You may also check that you have the correct GPG keys installed

Error:You may also check that you have the correct GPG keys installed

分享

由於開發上需要 perl-Digest-HMAC 的套件,又懶的到網路上去找 Source Code 編譯,因此,透過 YUM 進行套件的更新與安裝,我的開發環境使用的作業系統是CentOS 3.6 版。操作方式如下:

 
[root@hcserver root] # yum install perl-Digest-HMAC
Gathering header information file(s) from server(s)
Server: CentOS-3 – Addons
Server: CentOS-3 – Base
Server: CentOS-3 – Extras
Server: CentOS-3 – Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: perl-Digest-HMAC 1.01-11.1.noarch]
I will install/upgrade these to satisfy the dependencies:
[deps: perl-Digest-SHA1 2.01-15.1.i386]
Is this ok [y/N]: y
Downloading Packages
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/base/packages/perl-Digest-HMAC-1.01-11.1.noarch.rpm
Error: You may want to run yum clean or remove the file:
/var/cache/yum/base/packages/perl-Digest-HMAC-1.01-11.1.noarch.rpm
Error: You may also check that you have the correct GPG keys installed

這個錯誤訊息主要是告知 GPG Keys 沒有正確安裝,因此我們得先將 CentOS 所提供的 GPG Keys 安裝到系統中:
[root@hcserver root]# rpm –import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
[root@hcserver root]# yum install perl-Digest-HMAC
Gathering header information file(s) from server(s)
Server: CentOS-3 – Addons
Server: CentOS-3 – Base
Server: CentOS-3 – Extras
Server: CentOS-3 – Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: perl-Digest-HMAC 1.01-11.1.noarch]
I will install/upgrade these to satisfy the dependencies:
[deps: perl-Digest-SHA1 2.01-15.1.i386]
Is this ok [y/N]: y
Downloading Packages
Getting perl-Digest-SHA1-2.01-15.1.i386.rpm
perl-Digest-SHA1-2.01-15. 100% |=========================| 33 kB 00:03
Running test transaction:
Test transaction complete, Success!
perl-Digest-SHA1 100 % done 1/2
perl-Digest-HMAC 100 % done 2/2
Installed: perl-Digest-HMAC 1.01-11.1.noarch
Dep Installed: perl-Digest-SHA1 2.01-15.1.i386
Transaction(s) Complete
[root@hcserver root]# yum install perl-Digest-HMAC
Gathering header information file(s) from server(s)Server:
CentOS-3 – AddonsServer:
CentOS-3 – BaseServer:
CentOS-3 – ExtrasServer:
CentOS-3 – UpdatesFinding updated packagesDownloading neededheadersResolving dependencies.Dependencies resolvedI will do thefollowing:
[install: perl-Digest-HMAC 1.01-11.1.noarch]I will install/upgradethese to satisfy the dependencies:[deps: perl-Digest-SHA12.01-15.1.i386]Is this ok [y/N]: y
Downloading PackagesGetting perl-Digest-SHA1-2.01-15.1.i386.rpm
perl-Digest-SHA1-2.01-15. 100% |=========================| 33 kB 00:03
Running test transaction:Test transaction complete, Success!perl-Digest-SHA1 100 % done 1/2
perl-Digest-HMAC 100 %
done 2/2
Installed: perl-Digest-HMAC 1.01-11.1.noarch
Dep Installed: perl-Digest-SHA1 2.01-15.1.i386
Transaction(s) Complete

Categories: Linux 進階操作技巧 Tags:
  1. 目前尚無任何的評論。
  1. 目前尚無任何 trackbacks 和 pingbacks。

(若看不到驗證碼,請重新整理網頁。)

*