本想centos7中安装一个google浏览器,于是便遇上了yum报错问题,不管install任何软件,都会报错,真是气煞老夫!
报错内容如下:

已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     | 7.1 kB     00:00     * base: mirrors.aliyun.com* epel: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
base                                                     | 3.6 kB     00:00
docker-ce-stable                                         | 3.5 kB     00:00
epel                                                     | 4.7 kB     00:00
extras                                                   | 2.9 kB     00:00
teamviewer                                               | 2.5 kB     00:00
http://lnxrelease-02/yum/stable/main/binary-x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: lnxrelease-02; 未知的错误"
正在尝试其它镜像。One of the configured repositories failed (TeamViewer Internal (Dev Nightly Packages) - x86_64),and yum doesn't have enough cached data to continue. At this point the onlysafe 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=tvinternal_dev ...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 tvinternal_devorsubscription-manager repos --disable=tvinternal_dev5. 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=tvinternal_dev.skip_if_unavailable=truefailure: repodata/repomd.xml from tvinternal_dev: [Errno 256] No more mirrors to try.
http://lnxrelease-02/yum/stable/main/binary-x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: lnxrelease-02; 未知的错误"

在网上找了找原因,发现是源的问题!

解决办法: 干它…

第一步:删除 /etc/yum.repos.d 下的所有内容 (或只删除Centos-7.repo,猫哥是都删了)

rm -rf /etc/yum.repos.d/CentOS-*

第二步:下载国内源

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/

第三步:清除缓存,更新yum

yum clean all
yum clean metadata
yum update

结果:

[root@localhost yum.repos.d]# yum update
已加载插件:fastestmirror, langpacks
Determining fastest mirrors* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
base                                                     | 3.6 kB     00:00
extras                                                   | 2.9 kB     00:00
updates                                                  | 2.9 kB     00:00
(1/4): base/7/x86_64/group_gz                              | 153 kB   00:00
(2/4): extras/7/x86_64/primary_db                          | 190 kB   00:00
(3/4): updates/7/x86_64/primary_db                         | 168 kB   00:00
(4/4): base/7/x86_64/primary_db                            | 6.1 MB   00:00
No packages marked for update
[root@localhost yum.repos.d]# ls

删除 /etc/yum.repos.d 下的所有内容可能会存在隐患,不过至今为止,一切正常,还没发现什么幺蛾子!

记录一下 yum install *** 报错问题:failure: repodata/repomd.xml from tvinternal_dev: [Errno 256] No more mirr相关推荐

  1. CDH6.3 failure: repodata/repomd.xml from cloudera-manager: [Errno 256] No more mirr

    是http不是https,看好了

  2. failure: repodata/repomd.xml from xxxxxx: [Errno 256] No more mirrors to try.

    今天在Linux上面安装PostgreSQL的时候发生了 报错情况 failure: repodata/repomd.xml from xxxxxx: [Errno 256] No more mirr ...

  3. yum报错failure: repodata/repomd.xml from Centos: [Errno 256] No more mirrors to try. importing repomd.

    yum报错failure: repodata/repomd.xml from Centos: [Errno 256] No more mirrors to try. importing repomd. ...

  4. Centos7系统安装yum遇到的问题failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try. http:

    当遇到这个问题的时候,发现网上也有很多人也在问同样的问题.但是发现大家问的问题,很少有人能解释得很清楚,而且很多人的解决方法复杂且不能解决问题.我查了近二十篇博客和文章,对照做了,但是基本解决不了问题 ...

  5. [linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

    CentOS系统更换软件安装源 第一步:备份你的原镜像文件,以免出错后可以恢复. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentO ...

  6. failure: repodata/repomd.xml from docker-main-repo: [Errno 256] No more mirrors to try.

    异常: 安装docker出现异常 解决修改/etc/yum.repos.d/docker-main.repo 将baseurl=https://yum.dockerproject.org/repo/m ...

  7. centos在yum install报错:Another app is currently holding the yum lock解决方法

    centos在yum install报错:Another app is currently holding the yum lock解决方法 参考文章: (1)centos在yum install报错 ...

  8. centos7 下 sudo yum install 报错镜像找不到

    系统环境:centos7 问题复现:sudo yum 安装任何包 都是同一个错 操作之前:安装过docker的镜像 报错乱码: base | 3.6 kB 00:00:00 https://downl ...

  9. Docker安装错误failure: repodata/repomd.xml from docker-ce-stable

    使用yum命令安装docker或者其他工具时,出现错误failure_ repodata_repomd.xml from docker-ce-stable_ [Errno 256] No more m ...

最新文章

  1. InfoQ趋势报告:架构和设计领域技术演变详解
  2. webview键盘自适应_苹果笔记本显示器键盘专利曝光:单按键可重新配置
  3. 计算机组成原理_在线作业_2,计算机组成原理_在线作业_2讲述.docx
  4. 解决引入 lombok 注解不生效
  5. (二)流--递归算法
  6. 【theano-windows】学习笔记二十——LSTM理论及实现
  7. 远程声控系统(MATLAB代码见CSDN资源)
  8. LeetCode Shortest Distance from All Buildings
  9. 搭建maven的私服nexus
  10. Oracle之:查询锁表,删除锁表
  11. java基础之java输入输出语句
  12. 如何卸载 STEP 7-MicroWIN编程软件?
  13. 虚拟机C盘上建HTML文件怎,电脑如何通过VMware虚拟机映射本地磁盘实现文件共享...
  14. 作为一名菜鸟的学习分享
  15. signature=85eac1a0ae03db8a2d0f8ec439d1203b,Flashes
  16. 论文中的参考文献怎么写?
  17. ASP.NET Core中的TagHelper及其用法
  18. 计算机夏令营英语面试,保研经验 | 夏令营面试那些事儿(内含视频)
  19. PG如何影响数据分布
  20. 浅析栈指针ESP和帧指针EBP

热门文章

  1. Flutter Icons内置图标库MaterialIcons大全
  2. CHOCOLATEY : windows包管理软件改变软件的默认安装位置
  3. 基于Java爬虫的课堂考勤管理系统(毕业设计论文)
  4. 多层嵌套break跳出指定循环
  5. 以TM32最小系统核心板(STM32F103C8T6)为主,实现led流水灯
  6. 鲁班学院-java架构师线上培训机构哪家好
  7. 解决pip找不到问题
  8. 用户访问一个网站的过程描述
  9. C#.Net分类随笔列表
  10. 对secx,cscx积分的过程