Linux通过yum安装rz sz时候报错问题解决!
[root@bogon Python-2.7.9]# yum install -y lrzsz
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
据各位伟大的网友分析好像是什么东东被官方给禁用了,这里不研究她
解决办法:依次执行下面命令
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
一般执行完上述三条命令后,再继续安装时就可以安装成功了,如果还不行,继续执行一下后续命令
yum clean all
yum makecache