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 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. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, 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 <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. 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=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

  解决方式:

vim /etc/resolv.conf

  插入:

nameserver 8.8.8.8
nameserver 8.8.4.4

  

原文地址:https://www.cnblogs.com/Simon212/p/10986449.html

时间: 2024-10-13 14:36:28

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

Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error

安装Centos7(core)以后,网卡默认不会启用.这是一个大坑,直接报错,这是一个过度优化,有几个开发人员/运维人员安装centos7(core)不用ssh去连接服务器的. 报错如下: Loaded plugins: fastestmirror Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: cu

解决 &quot;Could not resolve host: mirrorlist.centos.or

解决 "Could not resolve host: mirrorlist.centos.org; 未知的错误" 安装yum报以下错误:错误引起主要是因为环境读取不到yun引起的.可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通.或者/etc/resolv.conf的DNS配置出错.或者可以考虑清楚yum缓存影响(yum clean all)经过尝试之后,以下步骤解决了我的问题:vi /etc/resolv.conf n

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

安装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

解决Couldn&#39;t resolve host &#39;mirrorlist.centos.org

这个错误引起主要是因为环境读取不到yun引起的可以考虑/etc/sysconfig/network-scripts/ifcfg-eth0 配置出错导致网络不通.或者/etc/resolv.conf的DNS配置出错.或者可以考虑清楚yum缓存影响(yum clean all) (下面是网上找到比较有用资料) 今天在linux环境通过yum安装软件报了以下错误: [[email protected] yum.repos.d]# yum install ncurses devel -y Loaded 

[原]linux安装软件时提示找不到镜像的问题:Couldn&#39;t resolve host &#39;mirrorlist.centos.org&#39;

问题:[[email protected] ~]# yum -y install gcc-*Loaded plugins: fastestmirror, prestoCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.cent

【转】解决yum安装软件报Couldn&#39;t resolve host &#39;mirrorlist.centos.org问题

转自:http://blog.51cto.com/oldcat1981/1719825 今天在linux环境通过yum安装软件报了以下错误: [[email protected] yum.repos.d]# yum install ncurses devel -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http

linux安装软件时提示找不到镜像的问题:Couldn&#39;t resolve host &#39;mirrorlist.centos.org&#39;

问题:[[email protected] ~]# yum -y install gcc-*Loaded plugins: fastestmirror, prestoCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.cent

Couldn&#39;t resolve host &#39;mirrorlist.centos.org&#39;解决办法

今天在服务器上安装oneinstack时, 输入命令: wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz 出现: Couldn't resolve host 'mirrorlist.centos.org' 无法解析 解决方法: [[email protected] ~]# vim /etc/resolv.conf nameserver 8.8.8.8 就好了. 不要怕问题,所有的问题,都是让你收获答案来的. ----------  招

PYCURL ERROR 6 - “Couldn&#39;t resolve host &#39;mirrorlist.centos.org&#39;”

在虚拟机上安装的CentOS,估计是网络配置问题,导致yum update和yum install之类的功能的用不了.出现标题上面的错误. ifdown [network_adapter] ifup [network_adapter] yum update 尝试以上命令就可以解决了. reference:http://stackoverflow.com/questions/20816133/pycurl-error-6-couldnt-resolve-host-mirrorlist-centos