rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY 安装依赖报错Key id:NOTKEY

遇到的错误如下:

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

./configure: error: the HTTP image filter module requires the GD library.
You can either do not enable the module or install the libraries.

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

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

命令安装所需要的依赖的时候后加上--force --nodeps

nodeps的意思是忽视依赖关系

可用于rpm报错

yum安装命令有关rpm的报错也可以使用,我是在Linux服务器上安装多个nginx时用yum下载所需依赖始终报错 NOTKEY,以为是yum的问题,结果是有rpm的报错隐藏其中,所以我在用yum命令下载的时候在最后

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值