简体   繁体   English

CentOS 8 stream

[英]CentOS 8 stream

dnf --enablerepo=centos-openstack-wallaby -y upgrade CentOS-8 - Ceph Nautilus 63 B/s | dnf --enablerepo=centos-openstack-wallaby -y 升级 CentOS-8 - Ceph Nautilus 63 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'centos-ceph-nautilus': Cannot prepare internal mirrorlist: No URLs in mirrorlist 38 B 00:00 错误:无法下载 repo 'centos-ceph-nautilus' 的元数据:无法准备内部镜像列表:镜像列表中没有 URL

If you need to update your CentOS 8 Stream, you need to change the mirrors to vault.centos.org如果您需要更新您的 CentOS 8 Stream,您需要将镜像更改为 vault.centos.org

Step 1: Go to the /etc/yum.repos.d/ directory第1步:Go到/etc/yum.repos.d/目录

# cd /etc/yum.repos.d/

Step 2: Run the below commands第 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-*

Now run your dnf command.现在运行你的 dnf 命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM