Fedora 中用 yum 安装软件出现 gpg keys 相关问题

软件开发商在释出 RPM 文件时,会在其中添加数字签名,并释出用于验证数字签名的公钥。使用 rpm 安装软件时,rpm 会首先根据系统中已有的公钥去验证 RPM 文件的数字签名。gpg keys 就是公钥。


问题:Public key for *.rpm is not installed

系统中没有能验证该 RPM 数字签名的公钥

  1. 安装现有的 gpg 公钥,在 /etc/pki/rpm-gpg/ 下,可以

    sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

    直接把所有的都安装。。。

  2. 还是不行的话,就通过参数指定不检查数字签名

    sudo yum -y install * --nogpgcheck


问题:

The GPG keys listed for the "Fedora 14 - i386" repository are already installed but they are not correct for this package.

Check that the correct key URLs are configured for this repository.


安装 /etc/pki/rpm-gpg/ 下的公钥时全部为 import failed


不知道怎么回事


只能 --nogpgcheck 了。。。

转载于:https://my.oschina.net/philosopher/blog/314780

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值