开发者社区 问答 正文

yum时 Couldnt resolve host

在配置php环境时
  需要yum安装 libjpeg-devel 但是报错了
   yum install -y libjpeg-devel
    Loaded plugins: security
[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
   Trying other mirror.
[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
  Trying other mirror.
   Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


我不能发带连接的帖子 所以错误信息不全

哪位大神能告知原因,在此感激不尽

展开
收起
节尚礼 2016-07-29 17:08:03 11905 分享 版权
2 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    欢迎来到阿里云论坛。

    如果提示无法解析到mirrors.aliyun.com和mirrors.aliyuncs.com的域名,那可能您系统当前的DNS配置可能有误。

    请参考这个帮助说明文档: https://help.aliyun.com/knowledge_detail/41303.html
    2016-07-29 19:08:23
    赞同 展开评论
  • 无法获取镜像内容,可以尝试百度寻找libjpeg-devel 自行下载安装
    2016-07-29 19:07:07
    赞同 展开评论