1 在 ESXI 的虚拟机上安装了Cent OS 6 的系统,执行 yum repolist 命令后报如下错误:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:5:200::10: Network is unreachable"

后来发现是防火墙的原因,执行如下命令,关闭 iptables 后恢复正常。

service iptables stop

2 阿里云ECS服务器,yum ×××tall 报错如下:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

解决:

同样需要关闭防火墙。