linux yum安装关于Public key for *.rpm is not installed问题

原文地址:http://blog.sina.com.cn/s/blog_716844910100qf8t.html作者:huage
Linux使用yum安装软件是提示“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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值