centos7安装php7.1出现GPG keys not correct for this package的问题

今天在centos上安装php7.1,安装过程中出现了一个问题,如下:


报错信息:The GPG keys listed for the "Webtatic Repository EL7 - x86_64" repository are already installed but they are not correct for this package.

查资料得知:

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

所以在安装的时候会比对已有的公钥,发现不正确,报错了,解决

[root@node1 yum.repos.d]# yum list | grep leatherman leatherman.x86_64 1.10.0-1.el7 @epel leatherman-devel.x86_64 1.10.0-1.el7 epel [root@node1 yum.repos.d]# facter -p facter: error while loading shared libraries: leatherman_curl.so.1.3.0: cannot open shared object file: No such file or directory [root@node1 yum.repos.d]# yum downgrade leatherman Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package leatherman.x86_64 0:1.3.0-9.el7 will be a downgrade --> Processing Dependency: libboost_log.so.1.59.0()(64bit) for package: leatherman-1.3.0-9.el7.x86_64 --> Processing Dependency: libboost_log_setup.so.1.59.0()(64bit) for package: leatherman-1.3.0-9.el7.x86_64 ---> Package leatherman.x86_64 0:1.10.0-1.el7 will be erased --> Running transaction check ---> Package boost159-log.x86_64 0:1.59.0-2.el7.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================ Package Arch Version Repository Size ================================================================================================================ Downgrading: leatherman x86_64 1.3.0-9.el7 openstack-vault 347 k Installing for dependencies: boost159-log x86_64 1.59.0-2.el7.1 openstack-vault 380 k Transaction Summary ================================================================================================================ Install ( 1 Dependent package) Downgrade 1 Package Total download size: 727 k Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/openstack-vault/packages/boost159-log-1.59.0-2.el7.1.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 764429e6: NOKEY Public key for boost159-log-1.59.0-2.el7.1.x86_64.rpm is not installed (1/2): boost159-log-1.59.0-2.el7.1.x86_64.rpm | 380 kB 00:00:03 (2/2): leatherman-1.3.0-9.el7.x86_64.rpm | 347 kB 00:00:04 ---------------------------------------------------------------------------------------------------------------- Total 157 kB/s | 727 kB 00:00:04 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 The GPG keys listed for the "CentOS-7 - OpenStack train (Vault)" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. Failing package is: leatherman-1.3.0-9.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
最新发布
06-17
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值