查了一下相关方案,好像是网络以及网关设置的问题。
报错很明显啊,你的YUM源没弄好,又怎么能去安装软件包呢?先配置好YUM源,可以删除或者备份yum源里的所有配置文件,然后重新进行配置,如果是外网,可以使用阿里源,配置方法可参考:阿里源基础包设置方法:https://developer.aliyun.com/mirror/centos阿里云EPEL源设置方法:https://developer.aliyun.com/mirror/epel