一、发生原因
CentOS Linux 8在2022年12月31日来到生命周期终点(End of Life,EoL)。即CentOS Linux 8操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。所以原来的CentOS Linux 8的yum源也都失效了!最终导致此问题的产生。
二、解决方案
备份原来的源
cd /etc/yum.repos.d/
ls -l
mkdir bak
mv CentOS-Linux-* bak
ls
下载源文件
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
安装软件测试结果
yum install make
最后修改于 2023-01-08 23:10:51
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

