All mirror URLs are not using ftp, http[s] or file
今天要yum点东西到服务器上,然后本地centos6用yum下载包,就报了All mirror URLs are not using ftp, http[s] or file.一顿操作猛如虎,一看效果0.5。终于还是万能的度娘告诉我因为centos6的支持给官方停掉了......
这样:
据说还有这样:
那你就这样做:
1.sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
2.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3.curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
4.yum clean all
5.yum makecache
然后你就会发现问题就解决了
https://zhuanlan.zhihu.com/p/338873211
分类:
软件技术
posted on 2022-01-28 15:43 lansedongqing 阅读(229) 评论(0) 编辑 收藏 举报
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现