首页 > 系统相关 >CentOS7 执行yum 命令出错 One of the configured repositories

CentOS7 执行yum 命令出错 One of the configured repositories

时间:2022-12-31 17:36:09浏览次数:59  
标签:will repository -- configured repositories CentOS7 manager yum

新安装的一台物理服务器, 执行yum命令出现了错误,

[root@localhost data]# yum -y install bc
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile


 One of the configured repositories failed (未知),
 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 retrieve metalink for repository: epel/x86_64. Please verify its path and try again

这里重点是最后一行 for repository: epel/x86_64. 说明是这个仓储出了问题。

删除这个仓库,就OK了!

rm -rf  /etc/yum.repos.d/epel.repo

标签:will,repository,--,configured,repositories,CentOS7,manager,yum
From: https://www.cnblogs.com/guowenrui/p/17016995.html

相关文章

  • centos7 安装GCC8
    gcc8yuminstallcentos-release-sclyuminstalldevtoolset-8source/opt/rh/devtoolset-8/enablegcc7yuminstallcentos-release-sclyuminstalldevtoolset-7......
  • 01.Centos7安装AWVS
    1,更新及解决依赖#yum-yinstalllibXrenderlibXextlibXcursorlibXfixeslibXcompositelibXrandrlibXdamagelibXtstlibXicups-libsdbus-gliblibXrandrlibXcurso......
  • Centos7下Zabbix5.0部署
    系统简介:zabbix是一个企业级解决方案,支持实时监控数千台服务器,虚拟机和网络设备采集百万级监控指标。Zabbix的主要特点有:指标收集:从任何设备、系统、应用程序上进行......
  • centos7 docker安装
    前提条件:目前,CentOS仅发行版本中的内核支持Docker。Docker运行在CentOS7(64-bit)上,要求系统为64位、Linux系统内核版本为3.8以上,这里选用Centos7.x一:检查环境1:查......
  • CentOS7开启telnet服务端,配合进行ssh升级
    默认情况下,linux’操作系统我们都是通过ssh进行远程操作,开启telnet一般是在升级ssh的时候需要,开启telnet是为了防止升级ssh之后,无法通过ssh登录系统,可用telnet登录。1.......
  • centos7下docker启动时报iptables错误
    centos7启动docker报错内容:iptablesfailed:iptables--wait-tnat-ADOCKER-ptcp-d0/0--dport22201-jDNAT--to-destination172.18.0.2:22!-idocker0:ip......
  • Centos7重置root密码
    如果忘记root密码,可以按以下步骤进行密码重置第一步在启动页面选择内核版本页面,按e进入编辑模式:  拉到后面,将ro改为rw,在这行后面加上init=/bin/sh    按ct......
  • 虚拟机(centos7)启动后没有ens33 ip地址的解决办法
    虚拟机(centos7)启动后,执行ipaddr命令,显示ens33没有ip地址,无法使用远程连接,这是由于网卡未加入托管所致;临时解决方案:执行命令:dhclientens33执行后查看ipaddr,ens33......
  • CentOS7安装MySQL5.7
    先进入MySQLCommunityDownloads(https://dev.mysql.com/downloads/),选择使用红色红框标记的菜单MySQLCommunityServer因为我们这里示范安装的是MySQL5.7.38,所以进......
  • 服务器CentOS7/Linux中文提示
    locale-a|grep"zh_CN"#如果没有任何提示需要下载语言包vim/etc/locale.conf添加LANG=zh_CN.gbk在最前面reroot#重启服务器生效......