Linux 安装yum报错Could not resolve host

已加载插件:langpacks
http://update.cs2c.com.cn:8080/NS/V7/V7Update4/os/adv/lic/base/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: update.cs2c.com.cn; 未知的错误”
正在尝试其它镜像。

One of the configured repositories failed (NeoKylin Linux Advanced Server 7 - Os),
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 workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Run the command with the repository temporarily disabledyum --disablerepo=ns7-adv-os ...4. Disable the repository permanently, so yum won't use it by default. Yumwill then just ignore the repository until you permanently enable itagain or use --enablerepo for temporary usage:yum-config-manager --disable ns7-adv-osorsubscription-manager repos --disable=ns7-adv-os5. 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 muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setopt=ns7-adv-os.skip_if_unavailable=true

failure: repodata/repomd.xml from ns7-adv-os: [Errno 256] No more mirrors to try.
http://update.cs2c.com.cn:8080/NS/V7/V7Update4/os/adv/lic/base/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: update.cs2c.com.cn; 未知的错误”

解决办法:在/etc/resolv.conf文件中添加 :nameserver 8.8.8.8

Linux 安装yum报错Could not resolve host 转载相关推荐

  1. Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案

    Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案 参考文章: (1)Linux安装Apache报错:Can ...

  2. linux 安装 anaconda3 报错concurrent.futures.process._RemoteTraceback

    linux 安装 anaconda3 报错concurrent.futures.process._RemoteTraceback 可能原因是安装目录的权限不够,权限都属于 root (有的文件夹被指定 ...

  3. npm安装依赖报错 unable to resolve dependency tree....

    场景: 之前的项目组已经没我需求了,我被分配到一个新项目组,重新clone的master代码,在npm install的时候报错unable to resolve dependency tree- 这 ...

  4. linux脚本空间预警,并发送邮件,内含配置邮箱服务器,及报错“Could not resolve host: //smtp.qq.com”、“smtp-server: 502”

    我的centos7.x是新装的系统,暂未开启任何邮箱服务 常说的mail.mailx和sendmail mail用户代理(客户端),是mailx的别名, mail和mailx是同一个东西 sendma ...

  5. linux安装驱动报错权限没有,linux系统下安装显卡驱动程序.doc

    前言: 当用户执行下列操作有不能执行的时候或许是权限不够.遇到这个问题可以用命令: [[email protected] ~] su root #切换到root用户 password : 输入root ...

  6. linux centos7 yum 报错 Public key for *.rpm is not installed 解决方法

    报错信息: [root@localhost backup]# yum -y install net-snmp Loaded plugins: fastestmirror Repository base ...

  7. linux centos yum 报错 [Errno 256] No more mirrors to try 解决方法

    目录 背景 报错信息 解决方案大致有三种 一.更新yum 二.若不行,可能是因为DNS不稳定吧,因为yum安装时会从三个"repo源"(base,extras,updates)随机 ...

  8. Linux安装jdk报错:package jdk-16.0.2-2000:16.0.2-ga.aarch64 is intended for a different architecture

    今天在Linux环境下安装JDK的时候遇到个小问题.在网上找了很多方法试了试都不行,一开始以为自己的环境有问题,后来发现其实就是自己下载错JDK的RPM.报错如下所示: 原因:安装包下载错了下载成:j ...

  9. linux 安装插件报错:Loaded plugins: fastestmirror

    目录 fastestmirror是什么? 解决步骤 1.更改只读文件的权限: 2.禁用插件 3.清除yum缓存,重新遍历 4.完美解决,正常执行 今日安装netstat 插件的时候,发现无法安装,报错 ...

最新文章

  1. 如何打印Qt中的枚举所对应的字符串
  2. BugKu:cookies 欺骗
  3. 中小学计算机教室设备维修记录,多媒体电教室的管理与设备的维护
  4. html 如何去除浮动,CSS浮动? 如何清除浮动?
  5. javascript事件之:jQuery事件中实例对象和拓展对象之间的通信
  6. java删除指定索引元素_将对象/元素添加到列表中的Java指定索引处
  7. CF540 B 贪心
  8. 1042. 字符统计(20)-PAT乙级真题
  9. scrapy-cluster scrapy集群建设
  10. Python每日一练——第5天:闰年问题升级版
  11. 磨金石教育摄影技能干货分享|人物系列摄影作品欣赏
  12. Hive权限管理,增加用户,授权
  13. -----前端换肤----
  14. TemplateView , ListView ,DetailView三种常用类视图用法
  15. SIO_KEEPALIVE_VALS 用户异常掉线检测
  16. 可变变量和不可变变量
  17. 妈,别再乱买保健品了!
  18. 防火墙双机热备配置实例(三)
  19. 【fraud detection】点击欺诈丛生 中国互联网广告一场骗局
  20. 顶尖众筹商业模式实操案例分享,打开你全新的赚钱思维!

热门文章

  1. 【产品测评】神庙逃亡2(Temple Run 2) 游戏测评
  2. 模拟农场 Farming Simulator 2019 for Mac(模拟经营游戏)
  3. 微信小程序实现分享海报
  4. 位图索引Bitmap indexes(数据库索引)
  5. NumberUtils.isNumber()方法验证字符串是否为数字失败
  6. Ssm网上考试系统 计算机专业毕设源码12795
  7. 日常填坑 ——linux服务器,mongodb吃内存,导致服务器缓慢
  8. 如果你依旧,别来无恙
  9. maven配置项目根路径_maven中classpath路径(转)
  10. linux关机常用命令