安装zabbix-agent报错 Error: failure: repodata/primary.xml.gz from zabbix: [Errno 256] No more mirrors to try.

安装zabbix-agent报错

yum install -y zabbix-agent
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.btte.net
 * updates: mirrors.aliyun.com
http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/repodata/primary.xml.gz: [Errno 12] Timeout on http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/repodata/primary.xml.gz: (28, 'connect() timed out!')
Trying other mirror.
Error: failure: repodata/primary.xml.gz from zabbix: [Errno 256] No more mirrors to try.

使用yum clean all解决

原文地址:https://www.cnblogs.com/guxiaobei/p/6376888.html