问题原因:CentOS-8于2021年12月31日停止了源的服务
可以命令查看一下系统是不是8:cat /etc/redhat-release
解决步骤:
(1)打开/etc/yum.repos.d文件夹:
cd /etc/yum.repos.d
(2)使用以下命令进行内容的替换:
sed -i 's/$releasever/8-stream/' CentOS*repo
问题原因:CentOS-8于2021年12月31日停止了源的服务
可以命令查看一下系统是不是8:cat /etc/redhat-release
解决步骤:
(1)打开/etc/yum.repos.d文件夹:
cd /etc/yum.repos.d
(2)使用以下命令进行内容的替换:
sed -i 's/$releasever/8-stream/' CentOS*repo