1、虚拟机上yum 安装yum install telnet
报错1no more mirrors to try
尝试1:
按照网上找的方法:
yum clean all
yum makecache
yum -y update
但是在第二步的时候,就报另外一个错:
Cannot find a valid baseurl for repo: base/7/x86_64
又找到网上说的解决这个问题的方法:去掉(重命名)/etc/yum.repos.d/CentOS-Base.repo
但是报错2:http://ip地址/cm6.0.1/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 192.168.5.128:80; Connection refused
但是把CentOS-Base.repo回原之后,还是报这个错,为了解决这个问题,用的是下面这个链接里面的方法:
https://www.cnblogs.com/horizonli/p/9553919.html
解决方法:
step 1)
# cd /etc/yum.repos.d/
# vim CentOS-Base.repo
:%s/$releasever/7.4.1708/g &