centos 8于21年底停止维护,需要更换为centos stream版
官网:https://centos.org/distro-faq
Q7有说明平滑迁移步骤,但报404仓库源不存在问题,所以需要切换一下阿里源
#cd /etc/yum.repos.d/
#rm -rf *.repo
#wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
#yum makecache
再回来操作Q7的命令即可
ps:对现有程序没影响,无缝切换