dnf --enablerepo=centos-openstack-wallaby -y 升级 CentOS-8 - Ceph Nautilus 63 B/s | 38 B 00:00 错误:无法下载 repo 'centos-ceph-nautilus' 的元数据:无法准备内部镜像列表:镜像列表中没有 URL
1 回答
0
如果您需要更新您的 CentOS 8 Stream,您需要将镜像更改为 vault.centos.org
第一步:进入 /etc/yum.repos.d/ 目录
# cd /etc/yum.repos.d/
第 2 步:运行以下命令
# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
现在运行你的 dnf 命令。
于 2022-02-07T05:04:03.397 回答