Linux学习安装docker记载

1、安装尝试安装docker出现Cannot find a valid baseurl for repo: base/7/x86_64问题

[root@localhost ~]# yum install docker
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&in
fra=stock error was
14: curl#7 - "Failed connect to mirrorlist.centos.org:80; Operation now in progress"One of the configured repositories failed (Unknown),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. Disable the repository, so yum won't use it by default. Yum will thenjust ignore the repository until you permanently enable it again or use--enablerepo for temporary usage:yum-config-manager --disable <repoid>4. 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=<repoid>.skip_if_unavailable=trueCannot find a valid baseurl for repo: base/7/x86_64

解决方案:

1、查看是否联网,执行ping命令是否能访问网站:ping www.baidu.com
2、进入/etc/sysconfig/network-scripts/ifcfg-ens(enp03s)这个可以执行ip addr命令查看

1.首先在网卡文件中,确保ONBOOT=yes ,如果设为静态的ip,则需要加上ipaddr、gateway、netmask设个属性
2. 按esc 后按(: wq) 退出编辑文件
2.重启网络:service network restart

3、更换linux的rpmoforge源

1.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

然后就可以使用了

再次安装了一次docker显示这是最新版的docker了,不需要再次下载

Linux下的Cannot find a valid baseurl for repo: base/7/x86_64问题记载相关推荐

  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. CentOS7用yum安装软件报:Cannot find a valid baseurl for repo: base/7/x86_64

    CentOS7用yum安装软件报:Cannot find a valid baseurl for repo: base/7/x86_64 问题:Cannot find a valid baseurl ...

  3. Docker build 报错 “ Cannot find a valid baseurl for repo: base/7/x86_64 ” 解决

    错误内容 docker build 阶段报错如下: Sending build context to Docker daemon 2.048 kB Step 1/3 : FROM centos:7-- ...

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

    今天我是在一台堡垒机上安装mysql,中间安装服务时,报错 我的情况时可以ping同百度的ip,ping不同百度的域名 我在 /etc/resolv.conf文件开头加上 nameserver 114 ...

  5. yum命令详解和报错 Cannot find a valid baseurl for repo: base

    文章目录 1 yum命令 1.1 yum简介 1.2 yum安装 1.3 yum配置 1.4 配置本地yum源 1.4.1 关于repo 文件的格式 1.5 配置国内yum源 1.5.1 上海交通大学 ...

  6. CENTOS7错误:Cannot find a valid baseurl for repo: base/7/x86_6

    撸了今年阿里.头条和美团的面试,我有一个重要发现.......>>> 问题 要解决Cannot find a valid baseurl for repo: base/7/x86_6 ...

  7. yum出错Error: Cannot find a valid baseurl for repo: base

    关注微信公众号"虾米聊吧",每天更新一篇技术文章,文章内容涵盖架构师成长必经之路应掌握的技术,一起学习,一起交流. 最近在安装mysql的rpm包时,出现了一个问题, 当使用命令: ...

  8. [linux虚拟机] 使用yum命令时,解析不了yum源,Cannot find a valid baseurl for repo: base/7/x86_6

    起因: 帮同学在centOS虚拟机中安装gcc yum -y install gcc gcc-c++ kernel-devel 但未成功

  9. centos Error: Cannot find a valid baseurl for repo: base 解决方法

    参考 https://arstech.net/centos-6-error-yumrepo-error-all-mirror-urls-are-not-using-ftp-http/ [1]报错现场: ...

最新文章

  1. siblings获取不平级_siblings()是获取平级元素,哪不是平级应该怎么获取元素呢?...
  2. 屏显有啥硬科技可卷?让现在电视厂商这么拼
  3. 辣眼睛:程序员这样过儿童节
  4. [JAVA] String常用方法
  5. CentOS7中Docker的安装与配置
  6. rlm sql mysql.so_UBUUTU7.10上安装配置freeradius+mysql+rp-pppoe手记
  7. HTTP协议详细资料
  8. 来自女朋友的灵魂拷问!| 今日最佳
  9. 2018年不能错过的 14 个 Java 库
  10. MSP432P401R TI Drivers 库函数学习笔记(一)导入工程模板
  11. 机器手六维坐标怎么定义_机器人学——2.4-坐标系的旋转和运动增量
  12. 粤教版小学认识计算机教案,粤教版八年级信息技术下册教案:第一章第一节初识计算机程序oc.pdf...
  13. python mysql传入多个参数
  14. 测试报告包含哪些内容?(超详细,带图)
  15. 深究embedding层
  16. 机器人的弊议论文_辩证对待机器人-议论文范文600字
  17. ps制作的html手机怎么使用,ps制作手机的教程
  18. 海量CAD图纸哪里获取呢?
  19. children()和children以及childrenNode的区别
  20. 核雕图案的寓意(上)

热门文章

  1. 计算机社团基础,计算机社团招新策划
  2. NVIDIA DLI——深度学习基础-理论与实践入门
  3. prism 创建ViewModel
  4. BUUCTF:[SWPUCTF 2016]Web blogsys
  5. linux磁盘文件检查修复工具下载,磁盘修复工具(TestDisk)
  6. 接口自动化测试之预期结果的处理
  7. int * arr 与 int arr[] 这两种定义数组方式的疑问
  8. 李现成为PADI全球青年海洋大使
  9. strong_alias、weak_alias
  10. leetcode--两数相加