CentOS 7 安装了k8s之后,在/etc/yum.repos.d 会生成一个kubernetes.repo文件,这样就导致代理链接到了google;

所以在使用yum 指令安装或更新时就会报错:

解决方法:

步骤1:在利用yum安装或更新之前,先对kubernetes.repo文件进行修改,将kubernetes.repo修改为kubernetes.repo.bak

mv kubernetes.repo kubernetes.repo.bak

结果如图:

步骤2:修改之后就可以用yum安装或更新了

步骤3:利用yum安装或更新完之后,需要将kubernetes.repo.bak文件还原回kubernetes.repo,否则k8s就无法使用了

CentOS 7 yum update 报错 Failed to connect to 2404:6800:4012::200e: Network is unreachable相关推荐

  1. 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报错 ...

  2. mycat重启报错Failed to connect to the Wrapper at port解决方法

    mycat重启报错Failed to connect to the Wrapper at port解决方法 参考文章: (1)mycat重启报错Failed to connect to the Wra ...

  3. Fedora或CentOS运行dnf update报错

    今天我照常打开电脑,随手运行了一句sudo dnf update,然后屏幕输出了一堆错误信息,我挨个删除仓库,最后事情越搞越乱,只好把除了NVIDIA以外的更新源全删了. 这下芭比Q了,虽然现在执行更 ...

  4. 登录mysql报错Failed to connect to backoff 或 Failed to get D-Bus connection: Operation not permitted解决方法

    报错: Failed to get D-Bus connection: Operation not permitted 或 mysql -u root -p 登录mysql时报错 2020-09-16 ...

  5. 解决 github 报错 Failed to connect to github.com port 443:connection timed out

    一.前言 你在使用github的时候,是不是会经常出现Failed to connect to github.com port 443:connection timed out报错,这是什么原因造成的 ...

  6. Github报错——Failed to connect to github.com port 443: Timed out

    出现的问题 用 github 上传文件,已经很久没出过错了,今天上传的时候,出现了超时的错误.就是下面这样 fatal: unable to access 'https://github.com/pr ...

  7. jenkins打包报错Failed to connect to repository : Command “/usr/bin/git ls-remote -h -- http://git.c5game

    Failed to connect to repository : Command "/usr/bin/git ls-remote -h -- http://git.c5game.com/c ...

  8. centos yum update 报错 Delta RPMs disabled because /usr/bin/applydeltarpm not installed 解决方法

    解决方法:yum install deltarpm -y 问题原因:需要安装 applydeltarpm 解决过程:先使用provides命令,查看是哪个包提供applydeltarpm [root@ ...

  9. centos执行yum命令报错,There are no enable repos

    综合各种答案,归结原因有两大类 一:当前系统不支持yum工具 Linux系统分为两大类 RedHat系列:Redhat.Centos.Fedora.... 使用yum管理包,使用rpm命令安装rpm包 ...

  10. LSF - 提交GUI应用到LSF无法运行,报错Failed to connect to socket /tmp/dbus-xxxxxxxxx: Connection refused

    问题描述 提交GUI应用到LSF无法运行,如下所示 问题分析 这种GUI应用,不能以交互式的方式提交.提交命令换成bsub firefox即可.

最新文章

  1. java中final关键字的使用
  2. a55 matlab排列组合_matlab常用的排列组合
  3. wxWidgets:wxConfig 概述
  4. c#怎么做windows窗体小程序_个人想做微信小程序怎么做?
  5. 解决echart中:Cannot read property ‘queryComponents‘ of undefined
  6. 2017.3.16 聪聪可可 思考记录(非常不容易)
  7. 前端开发人员需知——浏览器详解
  8. Java网络编程——Socket
  9. JavaScript学习(八十九)—数组练习题
  10. 初学Java,第一段代码
  11. 计算机网络网络层之层次路由
  12. Unix/Linux的内存映射
  13. windows 系统新建 vue 项目的坑
  14. 嵌入式开发--Altuim Designer生成的PCB文件过大,及其他日常技巧
  15. 用matlab如何求导,matlab如何求导 matlab求导 matlab如何求导
  16. Android Lolipop AssetAtlasService引起的系统崩溃
  17. 【bioinfo】bbtools:bbmerge 二代测序reads合并工具了解
  18. 定制Android模拟器skin
  19. 使用excel进行数据挖掘(4)---- 突出显示异常值
  20. 关于启动 vue 项目出现 98% after emitting CopyPlugin 问题的出现

热门文章

  1. win10无线投屏_原来小米的投屏功能,如此强大,每天都偷偷用,秒杀4k电视
  2. verilog学习笔记——8位数码管驱动设计与验证
  3. python 绘图函数_python绘图函数
  4. qt designer 手册翻译
  5. 通过keil5下载hex文件
  6. 电脑程序员需要考证件吗
  7. 单相无感正弦驱动方案
  8. 【步态识别】GaitMPL
  9. 华硕主板如何设置开机自启_华硕主板怎么设置自动开机,华硕主板设置通电开机-...
  10. 微信小程序短信倒计时60s功能