简体   繁体   中英

CentOS 8 stream

dnf --enablerepo=centos-openstack-wallaby -y upgrade 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

If you need to update your CentOS 8 Stream, you need to change the mirrors to vault.centos.org

Step 1: Go to the /etc/yum.repos.d/ directory

# cd /etc/yum.repos.d/

Step 2: Run the below commands

# 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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