在rhel5系统中导入V4的KEY的时候出现如下错误:
[root@192_168_103_42 yum.repos.d]# rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
error: https://packages.elasticsearch.org/GPG-KEY-elasticsearch: import read failed(-1).
wget https://packages.elasticsearch.org/GPG-KEY-elasticsearch
rpm --import GPG-KEY-elasticsearch
yum install logstash -y
报错:
error: rpmts_HdrFromFdno: Header V4 RSA/SHA1 signature: BAD
原因:
v4 signature are used by default in Centos 6, but Centos 5 only supports v3.
查看pubkey情况:
1、rpm -q gpg-pubkey
2、rpm -qi gpg-pubkey-d88e42b4-52371eca
当多次导入重复的pubkey时
[root@192_168_103_42 rpm-gpg]# rpm -q gpg-pubkey-d88e42b4-52371eca
gpg-pubkey-d88e42b4-52371eca
gpg-pubkey-d88e42b4-52371eca
可以进行清除,但必须加上--allmatches参数
[root@192_168_103_42 rpm-gpg]# rpm -e gpg-pubkey-d88e42b4-52371eca
error: "gpg-pubkey-d88e42b4-52371eca" specifies multiple packages
[root@192_168_103_42 rpm-gpg]# rpm -e --allmatches gpg-pubkey-d88e42b4-52371eca
本文出自 “秋天的童话” 博客,请务必保留此出处http://wushank.blog.51cto.com/3489095/1717955
原文地址:http://wushank.blog.51cto.com/3489095/1717955