解决yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..."
分类:CentOS运维 阅读:40965 次
安装svn的时候,发现报错说一个地址无法访问。
# yum list | grep subversion
- http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml:[Errno14]curl#6-"Couldn'tresolvehost'opensource.wandisco.com'"
- 正在尝试其它镜像。
- Oneoftheconfiguredrepositoriesfailed(WandiscoSVNRepo),
- andyumdoesn'thaveenoughcacheddatatocontinue.Atthispointtheonly
- safethingyumcandoisfail.Thereareafewwaystowork"fix"this:
- 1.Contacttheupstreamfortherepositoryandgetthemtofixtheproblem.
- 2.Reconfigurethebaseurl/etc.fortherepository,topointtoaworking
- upstream.Thisismostoftenusefulifyouareusinganewer
- distributionreleasethanissupportedbytherepository(andthe
- packagesforthepreviousdistributionreleasestillwork).
- 3.Disabletherepository,soyumwon'tuseitbydefault.Yumwillthen
- justignoretherepositoryuntilyoupermanentlyenableitagainoruse
- --enablerepofortemporaryusage:
- yum-config-manager--disableWandiscoSVN
- 4.Configurethefailingrepositorytobeskipped,ifitisunavailable.
- Notethatyumwilltrytocontacttherepo.whenitrunsmostcommands,
- sowillhavetotryandfaileachtime(andthus.yumwillbebemuch
- slower).Ifitisaverytemporaryproblemthough,thisisoftenanice
- compromise:
- yum-config-manager--save--setopt=WandiscoSVN.skip_if_unavailable=true
- failure:repodata/repomd.xmlfromWandiscoSVN:[Errno256]Nomoremirrorstotry.
- http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml:[Errno14]curl#6-"Couldn'tresolvehost'opensource.wandisco.com'"
- #vi/etc/resolv.conf
- #GeneratedbyNetworkManager
- nameserver8.8.8.8
- nameserver211.155.23.88
- nameserver211.155.27.88
热门推荐
- CentOS下安装Axel教程
- Centos安装iftop监视网络情况教程
- 实时访问工具MapTail平台搭建
- CentOS 6.3下nginx、php-fpm、drupal快速部署
- linux网络流量实时监控工具之nload
- 一键安装 CentOS+Nginx+PHP+MySQL
- CentOS+Nginx+PHP+MySQL
- CentOS安装LAMP(Apache+MySQL+PHP)
- Nginx优化 服务器轻松突破十万并发
- CentOS 5.5 编译安装Apache+MySQL+PHP
- CentOS VPS架设VPN教程
- CentOS源安装LAMP全过程
- centos 配置NFS服务器
- 阿里云CentOS服务器安全设置
- CentOS通过日志反查入侵
- CentOS服务器安全技巧
- CentOS安全之SYN攻击原理及处理
- Linux安全之SYN攻击原理及处理
- VPS安全之iptables基本配置
- SSH密钥登录让VPS下centos服务器更安全