首页 > 代码库 > Public key for *.rpm is not installed
Public key for *.rpm is not installed
[root@RedHat mnt]# cd /opt/cdrom/Packages/
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
base | 1.3 kB 00:00 ...
base/primary | 1.3 MB 00:00 ...
base 2680/2680
Setting up Install Process
Examining google-chrome-stable_current_i386.rpm: google-chrome-stable-10.0.648.134-77917.i386
Marking google-chrome-stable_current_i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:10.0.648.134-77917 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
google-chrome-stable
i386 10.0.648.134-77917 /google-chrome-stable_current_i386 83 M
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total size: 83 M
Installed size: 83 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Public key for google-chrome-stable_current_i386.rpm is not installed
两种方法可以解决:
1.运行
[root@RedHat Packages]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
可解决;
2.运行
[root@RedHat Packages]# yum.conf 文件,把里面的gpgcheck=1改为gpgcheck=0
(不推荐)。
注:方法2的效果很好
3.最好的解决办法:
加上"--nogpgcheck"参数
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm --nogpgcheck
Public key for *.rpm is not installed