1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > CentOS 7安装zabbix-agent 5.0报错:依赖检测失败:libpcre.so.0()(64bit)/获取GPG密钥失败解决

CentOS 7安装zabbix-agent 5.0报错:依赖检测失败:libpcre.so.0()(64bit)/获取GPG密钥失败解决

时间:2022-09-11 12:59:05

相关推荐

CentOS 7安装zabbix-agent 5.0报错:依赖检测失败:libpcre.so.0()(64bit)/获取GPG密钥失败解决

报错信息:

[root@localhost ~]# wget https://mirrors.tuna./zabbix/zabbix/5.0/rhel/6/x86_64/zabbix-agent-5.0.0-1.el6.x86_64.rpm[root@localhost ~]# rpm -ivh zabbix-agent-5.0.0-1.el6.x86_64.rpm警告:zabbix-agent-5.0.0-1.el6.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID a14fe591: NOKEY错误:依赖检测失败:libpcre.so.0()(64bit) 被 zabbix-agent-5.0.0-1.el6.x86_64 需要

解决方法:

使用Zabbix 5.0 Yum源文件安装zabbix-agent 5.0软件,并且将gpgcheck=1修改为gpgcheck=0,防止出现“获取GPG密钥失败”报错。

安装Zabbix Yum源仓库

[root@localhost ~]# rpm -Uvh /zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm[root@localhost ~]# yum clean all

修改Zabbix 5.0 Yum源配置文件:

[root@localhost ~]# vim /etc/yum.repos.d/zabbix.repo[zabbix]name=Zabbix Official Repository - $basearchbaseurl=/zabbix/5.0/rhel/7/$basearch/enabled=1gpgcheck=0//修改gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-frontend]name=Zabbix Official Repository frontend - $basearchbaseurl=/zabbix/5.0/rhel/7/$basearch/frontendenabled=1gpgcheck=0 //修改gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-debuginfo]name=Zabbix Official Repository debuginfo - $basearchbaseurl=/zabbix/5.0/rhel/7/$basearch/debuginfo/enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591gpgcheck=0 //修改gpgcheck=0[zabbix-non-supported]name=Zabbix Official Repository non-supported - $basearchbaseurl=/non-supported/rhel/7/$basearch/enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIXgpgcheck=0 //修改gpgcheck=0[root@localhost ~]# yum -y install zabbix-agent//安装zabbix-agent 5.0软件已加载插件:fastestmirrorRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationLoading mirror speeds from cached hostfile* epel: mirrors.yun-zabbix | 2.9 kB 00:00:00zabbix-frontend | 2.9 kB 00:00:00zabbix-non-supported | 951 B 00:00:00正在解决依赖关系--> 正在检查事务---> 软件包 zabbix-agent.x86_64.0.5.0.0-1.el7 将被 安装--> 解决依赖关系完成依赖关系解决=====================================================================================================================Package 架构版本 源 大小=====================================================================================================================正在安装:zabbix-agent x86_64 5.0.0-1.el7 zabbix 440 k事务概要=====================================================================================================================安装 1 软件包总计:440 k安装大小:1.8 MDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction正在安装 : zabbix-agent-5.0.0-1.el7.x86_641/1验证中: zabbix-agent-5.0.0-1.el7.x86_641/1已安装:zabbix-agent.x86_64 0:5.0.0-1.el7完毕!

/p/892bc381f0f7

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。