CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法

安装svn的时候,发现报错说一个地址无法访问。

# yum list | grep subversion

http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'"
正在尝试其它镜像。

 One of the configured repositories failed (Wandisco SVN Repo),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:

            yum-config-manager --disable WandiscoSVN

     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=WandiscoSVN.skip_if_unavailable=true

failure: repodata/repomd.xml from WandiscoSVN: [Errno 256] No more mirrors to try.
http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'"

在域名服务器配置中,添加一个8.8.8.8,就解决了:

# vi /etc/resolv.conf

# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 211.155.23.88
nameserver 211.155.27.88

(原创文章,转载请注明转自Clement-Xu的csdn博客。)

版权声明:本文为原创文章,转载请注明转自Clement-Xu的csdn博客。

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法

时间: 2024-10-08 17:04:10

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法的相关文章

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法

安装svn的时候,发现报错说一个地址无法訪问. # yum list | grep subversion http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'" 正在尝试其他镜像. One of the configured repositor

14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"

14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误" One of the configured repositories failed (未知), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways t

centos shell命令行只显示-bash-4.1#不显示用户和路径解决方法

 今天一不小心打了home目录删除命令,虽然最后因为种种原因没有删掉,但是home目录下很多文件和目录都被删了,而且命令行也不显示当前用户和路径了. 下面对其重新设置,需要设置两个文件:~/.bashrc和~/.bash_profile 1. bashrc 在当前目录下新建.bashrc文件: # touch ~/.bashrc # vim ~/.bashrc 并输入以下数据 # .bashrc # Source global definitions if [ -f /etc/bashrc

yum install 报错[Errno 14] curl#37 - Couldn't open file /mnt/repodata/repomd.xml

1.然后按照网上的一些修改,先是执行: yum cleam all 然后 yum makecache,问题还是没解决,继续报错. 其实这两条命令就是清空缓存,然后再重新缓存的意思,有时候可能有效. 2.然后又尝试了方法,说是DNS的问题,上不了网.又去改了DNS(可以去尝试尝试,因为不同人遇到问题不一样). 如果是绑定了静态地址,直接修改/etc/resolv.conf   这个文件下的DNS是没有用的,因为你执行命令service network restart 会恢复.所以要修改网卡的配置文

GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-Cent

错误描述:cento更新完源之后安装软件会出现这个错误 GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6" 解决方法:修改/etc/yum.repos.d/CentOS-Base.repo 最后面的数字改成版本号,例如我用的是centos7,那就所有的gpgkey的最后一个数字都改成7 gpgkey=file:///etc/pk

使用py2exe 将python文件转成exe文件(以及 error: [Errno 2] No such file or directory: 'MSVCP90.dll'解决方法)

用python写程序真的很简单,当我们开发出功能后,特别是带窗体的python程序,需要将python程序转成双击运行的exe程序.我们需要一个第三方模块 py2exe,就是将py转成exe的模块.只需py2exe怎么安装,我这里就不详细说明了,直接到官网上下载对应python的py2exe版本,然后是傻瓜式安装,并且安装好后py2exe模块会自动添加到python的路径中. 然后就简单了,我们在要被转换成exe的py文件目录下新建一个 setup.py 文件,将代码贴进去: #coding=u

'net’ 不是内部命令或外部命令,也不是可运行的程序或批处理文件 解决方法

'net’ 不是内部命令或外部命令,也不是可运行的程序或批处理文件 首先确定C:\Windows\System32下有net.exe     我的电脑-->属性-->高级-->环境变量 path的变量值新加: %SystemRoot%\system32     修改完成后,需要重新打开cmd命令行,否则不会生效的. 'net' 不是内部命令或外部命令,也不是可运行的程序或批处理文件 解决方法 原文地址:https://www.cnblogs.com/caiyishuai/p/107831

Linux学习篇之---CentOS Yum命令详解

yum有以下特点: *可以同时配置多个资源库(Repository) *简洁的配置文件(/etc/yum.conf) *自动解决增加或删除rpm包时遇到的倚赖性问题 *使用方便 *保持与RPM数据库的一致性 yum,是Yellow dog Updater Modified的简称,起初是由yellow dog这一发行版的开发者Terra Soft研发,用python写成,那时还叫做yup(yellow dog updater),后经杜克大学的[email protected]开发团队进行改进,遂有

CentOS 6.4断电后启动出现:unexpected inconsistency run fsck manully 解决方法

centos 6.4断电或者重启后出现以上问题 错误信息最后提示的""control -D"",是重启系统的,没什么卵用. 解决方法: 输入服务器root密码 执行以下命令修复磁盘 fsck -y /dev/sdb3 注意:我遇到的是 ""/dev/sdb3 你的不一定和我相同"" 3.重启系统 reboot fsck fsck 作用是用来检查和维护不一致的文件系统.如果系统发生异常关机或者磁盘发生问题,可以利用 fsck命令