1、centos使用yum或者dnf命令安装都失败,且连接互联网正常,如下图所示:
2、可查看/var/log/dnf.log日志
3、备份yum源,重新下载华为centos8版本软件仓库
mv /etc/yum.repos.d/Centos* bak/
curl -o /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo
dnf clean all
清理仓库缓存
4、生成缓存斌查看,问题解决
dnf repolist
标签:dnf,log,repos,repo,yum,无法,安装,centos8 From: https://www.cnblogs.com/mojt/p/17656139.html