【linux】安装zabbix时候报错:Error downloading packages: zabbix-server-mysql-5.0.2-1.el7.x86_64

2021/4/14 2:25:36

本文主要是介绍【linux】安装zabbix时候报错:Error downloading packages: zabbix-server-mysql-5.0.2-1.el7.x86_64,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!


文章目录

    • 问题复现
    • 问题分析
    • 问题解决


问题复现

安装zabbixserver,,zabbix-agent的时候,报错:

Error downloading packages:
zabbix-server-mysql-5.0.2-1.el7.x86_64: [Errno 256] No more mirrors to try.
zabbix-agent-5.0.2-1.el7.x86_64: [Errno 256] No more mirrors to try.

问题分析

一般这样的问题是因为用的国外源,下载速度慢导致的,可以多下载几次试试,或者直接换成阿里的源

问题解决

把国外源换成国内源。

直接使用这个即可:

[root@zmedu-17 yum.repos.d]# cat zabbix.repo [zabbix]name=Zabbix Official Repository - $basearch#baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-frontend]name=Zabbix Official Repository frontend - $basearch#baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontendbaseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-debuginfo]name=Zabbix Official Repository debuginfo - $basearchbaseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/#baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/debuginfo/enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
gpgcheck=1[zabbix-non-supported]name=Zabbix Official Repository non-supported - $basearch#baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1[root@zmedu-17 yum.repos.d]#


这篇关于【linux】安装zabbix时候报错:Error downloading packages: zabbix-server-mysql-5.0.2-1.el7.x86_64的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程