YumRepo Error: All mirror URLs are not using ftp, http[s] or file解决办法
一、问题背景
CentOS6.5利用yum命令安装程序报错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
、以及利用yum makecache命令时报错Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again。
二、解决办法
在网上查了很多办法,也走过很多坑,最后终于在Centos6 yum源 centos/6.6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERRO 报错解决方法及新的源_醉世老翁的博客-CSDN博客
找到了可用的办法,亲测有效。 为了以后方便用别丢失了,特意转载过来。
原因分析:CentoS 6 停止维护更新日期2020年11月30日,其中
CentOS 7 停止维护更新日期2024年6月30日
CentOS 8 停止维护更新日期2021年12月31日,其他具体信息可参阅官网zh/About/Product - CentOS Wiki
解决办法: 阿里云源可以使用,直接复制下面的信息替换CentOS-Base.repo文件里面的内容就可以使用。
1、修改yum配置文件
vi /etc/yum.repos.d/CentOS-Base.repo #打开yum配置文件
2、将下面的配置信息复制替换掉CentOS-Base.repo文件里的内容,亲测有效~~~但是一定要注意,里面的信息要根据自己的centos版本做相应的调整,我的是6.5版本的就修改6.5,如果你的是6.6就修改为6.6!!!
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#[base]
name=CentOS-6.5 - Base
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6[updates]
name=CentOS-6.5 - Updates
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6[extras]
name=CentOS-6.5 - Extras
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6[centosplus]
name=CentOS-6.5 - Plus
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6[contrib]
name=CentOS-6.5 - Contrib
baseurl=http://mirrors.aliyun.com/centos-vault/6.6/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
然后再利用以下命令清理以下缓存就可以了
yum clean all #清除yum缓存
rm -rf /var/cache/yum/ #删除yum缓存文件
yum makecache #重新创建yum缓存,这里注意系统时间要与因特网一致
现在就可以安装了
YumRepo Error: All mirror URLs are not using ftp, http[s] or file解决办法相关推荐
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. /HTML/ 标签: yum 2014-05-26
YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/ 标签: yum 2014-0 ...
- YumRepo Error_ All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release_repo_arch co
一.背景 继 CentOS 8 停维后 CentOS 7 也将停止维护! CentOS 8 2021年底停止维护,CentOS 6 2020年底停止维护,CentOS 7 也已于 2020 年底结束整 ...
- YumRepo Error: All mirror URLs are not using问题解决
YumRepo Error: All mirror URLs are not using问题解决 (2013-01-24 02:55:57) 转载▼ 标签: yumrepo error mirror ...
- 【转】error while loading shared libraries: xxx.so.x 错误的原因和解决办法
原博客地址:http://www.cnblogs.com/Anker/p/3209876.html#undefined error while loading shared libraries: xx ...
- yum 更新内核报错 “Error: initscripts conflicts with centos-release-7-0.1406.el7.centos.2.3.x86_64的解决办法
yum 更新错误 "Error: initscripts conflicts with centos-release-7-0.1406.el7.centos.2.3.x86_64″的解决办法 ...
- pycharm报错:Error configuring SDK: Accessing invalid virtual file: 解决办法
pycharm报错:Error configuring SDK: Accessing invalid virtual file: 解决办法: 针对linux系统, 删除home目录下pycharm配置 ...
- Original error was: DLL load failed: 找不到指定的模块。--解决办法
问题描述:今天装了一下pytorch,在pycharm中运行代码时显示下面错误:Original error was: DLL load failed: 找不到指定的模块.查找原因后发现是在pycha ...
- MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法
1 问题 [root@localhost mysql]# /etc/rc.d/init.d/mysql status MySQL is not running, but lock file (/var ...
- Hbase出现ERROR: Can‘t get master address from ZooKeeper; znode data == null解决办法
问题描述如下: hbase(main):001:0> list TABLE ERROR: Can't get master address from ZooKeeper; znode data ...
最新文章
- 操作所有的数据库免费可视化界面靠它就够了,告别付费,告别白嫖,卸载Navicat!
- 管理软件预警通知(Notification)功能的实现案例分析
- css3:绘制android3蜂巢Honeycomb
- CoInitialize和CoInitializeEx
- oracle有入参的试图,Oracle 带参视图
- zabbix agent监控主机配置
- 组态软件运行在云服务器是上,如何将本地组态画面发布到云服务器
- 【译文】用Spring Cloud和Docker搭建微服务平台
- MySQL5.6 新特性之GTID
- 网络安全之uRPF技术
- android 蓝牙连接苹果手机号码,苹果与android蓝牙连接怎么实现
- Android 使用三级缓存实现对图片的加载
- 攻防世界-CRYPTO新手区
- svg html g标签id,svg是什么?svg常用的方法(附代码)
- 怎么用wps将pdf转换成html,如何将PDF格式的文件转换成HTML格式
- 全球与中国光刻机运行现状与发展趋势预测报告2022-2028年
- Ubuntu22降版本
- 明翰英语教学系列之方法篇
- Java项目:基于java航空订票系统(计算机毕业设计)
- maven子包打包的时候[WARNING]
热门文章
- va_list的用法
- X书x-mini-sig_x-mini-mua
- Install SVN Error:The Feature You Are Tring to Use is on a Network Resource That is Unvaliable
- 北京盈创再生资源有限公司研发楼项目智能照明控制系统的设计和应用
- 中文汉字数字转罗马数字方法
- ShowWindow(SW_SHOWNORMAL)
- 2020年最强大脑第五期黑白迭代小游戏实现(Java)
- PySpark之DataFrame的常用函数(创建、查询、修改、转换)
- 大数据之Stream流
- cocos2d 3.3 lua 代码加密 luac