关于YumRepo Error: All mirror URLs are not using ftp......报错的解决方法
来源:互联网 发布:美国对外贸易数据 编辑:程序博客网 时间:2024/05/29 12:50
今天,我想用yum安装某软件时,系统报错:
经过查询,参考网友智慧:
判断有以下几种可能原因
1:系统取不到Release号
输入lsb_release,若有以下输出说明是没有问题的
否则:你可以 vim /etc/yum.repos.d/CentOS-Base.repo 然后 修改里面的$releasever为6。(因为我的是centos6)
2:有可能是dns不对,无法正常解析,换成8.8.4.4
方法如下:
一、修改配置文件
二、按格式修改
3:有可能是防火墙阻碍了出网http请求或是ftp请求,请检查网关防火墙
你可以将防火墙关掉试试。service iptables stop
我试了上面三种方法发现并没有解决我的问题
不过,在试的过程中,我发现我的/etc/yum.repos.d/CentOS-Base.repo文件中baseurl被注释掉了,我把它注释移除,就OK啦
by the way,也可以修改yum镜像站点为中国站点地址,参考
http://haojianguang.blog.51cto.com/382919/128096
http://lovelace.blog.51cto.com/blog/1028430/968149
0 0
- 关于YumRepo Error: All mirror URLs are not using ftp......报错的解决方法
- YumRepo Error: All mirror URLs are not using问题解决
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/ 标签: yum 2014-05-26
- centos 5 yum 不能用出现all mirror URLs are not use ftp http or file
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法!
- Maven报错Please ensure you are using JDK 1.4 or above and not a JRE解决方法
- golang报错: all goroutines are asleep
- Windows平台的 PHP 报错 Fatal error: Class COM not found in 的解决方法
- Android项目“error: Apostrophe not preceded by \ (”报错解决方法
- Android项目“error: Apostrophe not preceded by \ (”报错解决方法
- supervisorctl报错"error: <class 'socket.gaierror'>, [Errno -2] Name or service not known"的解决方法
- Android Studio中运行报错:libpng error: Not a PNG file的解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法 .
- springMVC项目启动卡死在Initializing Spring root WebApplicationContext
- Vlan的3种访问模式:Access、Hybrid和Trunk
- OS中常用的调度算法总结
- 沙盒
- StringUtils常用方法+StringUtils详细介绍
- 关于YumRepo Error: All mirror URLs are not using ftp......报错的解决方法
- 音视频播放
- JESD204B链路层
- mongodb[一] 安装完成,启动mongodb
- 应用程序之间的跳转
- 文件内容读取--Tika
- 学习笔记1:归档解档、runtime
- SDWebImage缓存数据的获取/删除
- MWPhotoBrowser的简单使用