首页 > 系统相关 >第三方的镜像站中均已移除CentOS 8的源,Centos 8版本已停止更新相应依赖导致的,下载新的yum源

第三方的镜像站中均已移除CentOS 8的源,Centos 8版本已停止更新相应依赖导致的,下载新的yum源

时间:2022-10-17 18:22:16浏览次数:44  
标签:epel Centos CentOS repos repo etc yum 移除

yum命令失败:

Errors during downloading metadata for repository 'epel':
- Status code: 404 for http://archives.fedoraproject.org/pub/archive/epel/8/Everything/x86_64/repodata/repomd.xml (IP: 38.145.60.24)
Error: Failed to download metadata for repo 'epel': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

 

1、备份之前的repo文件,命令:

mv /etc/yum.repos.d /etc/yum.repos.d.bak
2、创建源文件目录,命令:

mkdir -p /etc/yum.repos.d
3、下载新的yum源,分别执行以下2条命令:

先输入

curl https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo > /etc/yum.repos.d/Centos-vault-8.5.2111.repo
后输入即可

curl https://mirrors.aliyun.com/repo/epel-archive-8.repo > /etc/yum.repos.d/epel-archive-8.repo

标签:epel,Centos,CentOS,repos,repo,etc,yum,移除
From: https://www.cnblogs.com/lc-66/p/16800160.html

相关文章

  • 实验-Linux添加磁盘分区挂载以及CentOS下的文件系统
    概览实验项目名称CentOS7下的文件系统实验时间2022年10月17日实验类型□验证性□设计性□综合性一、实验目的1.掌握在虚拟机中......
  • Centos 6下安装oracle 19c报错解决
    环境:Os:Centos6.9DB:19.3.0.0 报错误1.:/lib64/libc.so.6:version`GLIBC_2.14'notfound解决办法,升级glibc:https://www.cnblogs.com/hxlasky/p/16779047.html ......
  • centos netcore开机启动
    vi/etc/systemd/system/demoNetCore.service[Unit]Description=AspnetCoreDemorunningonCentos8[Service]#应用程序所在的文件目录WorkingDirectory=/www/wwwroo......
  • yum downgrade降级安装包
    问题安装gccgcc-c++make等编译包,提示glibc错误依赖-->FinishedDependencyResolutionError:Package:glibc-headers-2.17-317.el7.x86_64(centos7)R......
  • centos7中如何关闭、启动防火墙
     001、查看防火墙状态systemctlstatusfirewalld  002、关闭防火墙systemctlstopfirewalld 003、查看关闭防火墙状态systemctlstatusfirewalld......
  • Installing glibc-2.30 CentOS 7.9
    一、Installingglibc-2.30CentOS7.9C语言底层运行库,不推荐更改地址https://ftp.gnu.org/gnu/glibcwget下载wgethttps://ftp.gnu.org/gnu/glibc/glibc-2.25.tar......
  • svn搭建配置(centos7)
    svn搭建配置(centos7)1安装svn服务端yum-yinstallsubversion2建立版本库目录mkdir/www/svndata3启动svnsvnserve-d-r/www/svndata4创建版本库svna......
  • Samba资源共享服务搭建(centos7)
    Samba资源共享服务搭建1查询是否已经安装了Sambarpm-qisamba2下载Samba包并安装yuminstallsamba3查看已经安装好的Samba的信息rpm-qa|grepsamba4添加......
  • CentOS7 搭建 DNS 域名解析服务器
    CentOS7搭建DNS域名解析服务器1.安装BIND服务器软件并启动yum-yinstallbindbind-utilssystemctlstartnamed.service//启动服务systemctlenablenamed......
  • 【Python】Centos7安装Python3和pip
    安装Python3#wgethttps://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz#tar-xvJfPython-3.6.2.tar.xz#cdPython-3.6.2#./configure--prefix=/data......