Centos8 Yum cannot be used

Centos8 Yum cannot be used to solve

Detailed error report

CentOS-8 - Base - 163.com 310 B/s | 162 B 00:00
Errors during downloading metadata for repository ‘base’:

  • Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 60.191.80.11)
    Error: Failed to download metadata for repository 'base': Cannot download repomd .xml: Cannot download repodata/repomd.xml: All mirrors were tried

Solution

I went around Du Niang today and couldn't solve this problem, but I went to Ali's mirror station to look around, and I found that he had an article.
insert image description here
I see this is not the solution

A command to solve your worries

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

Guess you like

Origin blog.csdn.net/qq_36678880/article/details/123568797