解决华为云CentOS8 yum的404问题

2022/4/9 7:20:00

本文主要是介绍解决华为云CentOS8 yum的404问题,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

命令:

cd /etc/yum.repos.d

tar -zcf bak20220408.tar.gz ./*.repo

rm -rf ./*.repo

wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo

把 CentOS-Base.repo 里 的baseurl所有 $releasever 替换成 8-stream,然后执行

yum clean all && yum makecache

参考:

  https://www.cnblogs.com/hanabi-dx/p/15942937.html

  https://blog.csdn.net/linzi19900517/article/details/122846919



这篇关于解决华为云CentOS8 yum的404问题的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程