使用 yum update -y 报错 Repository extras is listed more than once in the configuration 2020 年 12 月 8
使用 yum update -y 报错 Repository extras is listed more than once in the configuration
2020 年 12 月 8 号,Centos 官方宣布了停止维护 CentOS linux 的计划,并推出了 CentOS Stream 项目,CentOS Linux 8 作为 RHEL 8 的复刻版本,生命周期缩短,于 2021 年 12 月 31 日停止更新并停止维护(EOL),更多的信息可以查看 CentOS 官方公告。如果需要更新 CentOS,需要将镜像从 mirror.centos.org
更改为 vault.centos.org
解决如下:
cd /etc/yum.repos.d/#更新yum源为阿里源wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.reposed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*sed -i 's|#baseurl=Http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*#如果已经安装了wget就不需要这一步yum install wget –yyum clean allyum makecache#验证yum install -y vim``
来源地址:https://blog.csdn.net/qq_60361946/article/details/129174615
--结束END--
本文标题: Centos 报错 Repository extras is listed more than once in the configuration
本文链接: https://www.lsjlt.com/news/395283.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-23
2024-05-22
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-13
2024-05-13
2024-05-11
2024-05-11
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0