歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

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
 
Copyright © Linux教程網 All Rights Reserved