linux-yum-异常
异常报错:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"
主要就是yum源地址连接不上,切换国内阿里yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo没有wget工具的 使用curl即可
yum clean all && yum makecache
至此,就可以快乐的使用yum下载工具了,如果还是不行,可能就要看下虚拟的是否联网成功了。
贴个博客
VMware虚拟机连不上网络,最详细排查解决方案_虚拟机网络信息不可用怎么解决-CSDN博客