回忆之城
生命在于折腾
posts - 575,comments - 9,trackbacks - 0

[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       Package(s)

Upgrade       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

posted on 2014-04-19 21:19 回忆之城 阅读(68) 评论(0)  编辑 收藏 引用 所属分类: unix/linux
只有注册用户登录后才能发表评论。