Rhel
未找到 RPM 的公鑰
我正在嘗試使用 YUM 在 Redhat 5.5 上安裝軟體包,但它總是給我這個錯誤
[root@redhat64 Desktop]# yum install perl-Net-Server-0.97-1.el5.rf.noarch.rpm Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Examining perl-Net-Server-0.97-1.el5.rf.noarch.rpm: perl-Net-Server-0.97-1.el5.rf.noarch Marking perl-Net-Server-0.97-1.el5.rf.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package perl-Net-Server.noarch 0:0.97-1.el5.rf set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: perl-Net-Server noarch 0.97-1.el5.rf /perl-Net-Server-0.97-1.el5.rf.noarch 357 k Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total size: 357 k Is this ok [y/N]: y Downloading Packages: warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 Public key for perl-Net-Server-0.97-1.el5.rf.noarch.rpm is not installed
注意::作業系統是在虛擬機上執行的 5.5 64 位,我在本地 YUM 儲存庫中設置了 GPGCHECK=0。
儲存庫的輸出
[root@redhat64 ~]# cat /etc/yum.repos.d/* | grep -v "^#" [rhel-debuginfo] name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-debuginfo-beta] name=Red Hat Enterprise Linux $releasever Beta - $basearch - Debug baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/$basearch/Debuginfo/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-local.repo] name=Local Repo Baseurl=file:///RPMS enabled=1 gpgcheck=0
我使用 Local.repo 作為我的主要包儲存庫
您需要安裝 Repoforge GPG 密鑰:
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt