乐于分享
好资源不私藏

记录刚安装的centos6.5使用yum下载出错的解决办法

报错如下,YumRepo Error: All mirror URLs are not using ftp, http[s] or file.                Eg. Invalid release/repo/arch combination/

 

Loaded plugins: fastestmirror

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

解决方法:配置新的源即可

执行如下命令:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo

sed -i 's#http#https#g' /etc/yum.repos.d/CentOS-Base.repo

yum clean all

yum makecache

 

未经允许不得转载:9i资源网 » 记录刚安装的centos6.5使用yum下载出错的解决办法
支付宝扫码打赏 微信打赏

如果文章对您有帮助,欢迎移至上方按钮打赏...

评论 抢沙发

评论前必须登录!

立即登录   注册

×
订阅图标按钮