我是靠谱客的博主 唠叨康乃馨,这篇文章主要介绍linux 用yum安装包报错All mirror URLs are not using ftp, http[s] or file.的解决方案,现在分享给大家,希望可以做个参考。

用root用户登录,执行以下命令:

复制代码
1
2
3
4
5
6
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

最后

以上就是唠叨康乃馨最近收集整理的关于linux 用yum安装包报错All mirror URLs are not using ftp, http[s] or file.的解决方案的全部内容,更多相关linux内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(73)

评论列表共有 0 条评论

立即
投稿
返回
顶部