首页 > 系统相关 >CentOS7安装Docker时yum过程报错

CentOS7安装Docker时yum过程报错

时间:2023-09-25 18:55:33浏览次数:60  
标签:will repository -- CentOS7 manager yum 报错

!!!离谱

yum install -y yum-utils \
           device-mapper-persistent-data \
           lvm2 --skip-broken

报错:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


 One of the configured repositories failed (Unknown),
 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 working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. 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 much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

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

vi /etc/resolv.conf

增加 nameserver 8.8.8.8
再次尝试yum命令即可。

标签:will,repository,--,CentOS7,manager,yum,报错
From: https://www.cnblogs.com/fulfill/p/17728619.html

相关文章

  • SpringBoot学习1(项目部署以及创建报错的解决)
    1.SpringBoot设计目的:简化Spring应用的初始搭建以及开发过程.2.空项目创建2.1查看更改自己的maven版本file-->settings有时候这里的mavenhomeusersettingsfilelocal..不是自己的maven文件夹,记得修改过来。 2.2创建modulefile-->projectstructure如果有一个module的......
  • MySQL报错:Last_Errno: 1008 | Last_SQL_Errno: 1008
    MySQL报错:Last_Errno:1008|Last_SQL_Errno:1008原创HowardSir2017-05-0616:48:38博主文章分类:MySQL©著作权文章标签mysqlMySQL文章分类MySQL数据库阅读数3783©著作权归作者所有:来自51CTO博客作者HowardSir的原创作品,请联系作者获取转载授权,否则将追究......
  • yum安装mysql8
    记录一下安装过程用于后面项目参考目录说明安装步骤yum安装默认目录修改默认的数据目录必要的my.cnf属性修改卸载Mysql说明一般情况下都是docker安装,部分特殊情况下,例如老外的项目部分禁用docker,那一般二进制安装或者yum直接安装。安装操作系统redhat7.xmysql版本8.0.22安装方......
  • centos7升级openssh9.3p1
    centos7升级openssh9.3p1制作rpm包安装依赖包yuminstall-yrpm-buildgccgcc-c++glibcglibc-developenssl-developensslpcre-develzlibzlib-develmakewgetkrb5-develpam-devellibX11-develxmkmflibXt-develinitscriptslibXt-develimakegtk2-devellrzsz创建制......
  • com.intellij.diagnostic.PluginException报错导致无法启动idea
    IDEA报错:2023-09-2516:16:56,738[178934]ERROR-nSystem.impl.ActionManagerImpl-[Plugin:com.zhaow.restful.toolkit]com.intellij.diagnostic.PluginException:[Plugin:com.zhaow.restful.toolkit]atcom.intellij.openapi.actionSystem.impl.ActionMa......
  • centos7 安装Jira
    一、个人环境1、CentOS7安装mysql5.7:https://www.cnblogs.com/panlifeng/p/17728058.html二、安装包1、java1.8.0链接:https://pan.baidu.com/s/1-lP6hwfbASMlQt7o84sMfg提取码:i7bw2、mysql5.6链接:https://pan.baidu.com/s/150wRhoRRXcGCZLHb9k70cQ提取码:quv33、Jira7.4.1......
  • centos7安装docker教程
    (目录)前言Docker分为CE和EE两大版本。CE即社区版(免费,支持周期7个月),EE即企业版,强调安全,付费使用,支持周期24个月。DockerCE分为stabletest和nightly三个更新频道。官方网站上有各种环境下的安装指南,这里主要介绍DockerCE在CentOS上的安装。1.CentOS安装......
  • 在idea的控制台使用命令报错XXX无法识别为命令或改变了环境变量后idea环境未同步更新
    报错XXX无法识别为命令是当前环境中不存在XXX配置,当前环境不是说电脑的系统环境,比如使用的idea那当前环境就是idea的配置环境:打开设置(ctrl+alt+s) 在Value中添加XXX对应的路径,记得加分号(;)。 ......
  • IntelliJ Idea编译报错:请使用 -source 7 或更高版本以启用 diamond 运算符
    最近在使用IntelliJIdea遇到了挫折,分享出来给大家,问题由来是我导入了外部的java文件,结果就报错了错误的句子也提示出来了:KafkaConsumer<String,String>kafkaConsumer=newKafkaConsumer<>(props);网上搜了各种解决方法都不行,崩溃的节奏啊,终于皇天不负有心人,让我同事解决了,希......
  • OGG报错 INS-85054 in oggca.sh createing a new Service Manager after removing a p
    这个报错主要是ogg的自启动和目录问题DeletethefollowingfilesattheOSlevel:Linux7/etc/systemd/system/OracleGoldenGate.service/etc/oggInst.locLinux6/etc/init.d/OracleGoldenGate/etc/rc.d/*OracleGoldenGate/etc/rc*.d/*OracleGoldenGate/etc/oggInst......