阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6

**错误:
yum install maven
Repository epel is listed more than once in the configuration
CentOS Linux 8 - AppStream 17 MB/s | 18 MB 00:01
CentOS Linux 8 - BaseOS 7.3 kB/s | 2.3 kB 00:00
Errors during downloading metadata for repository ‘baseos’:

  • Status code: 404 for https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 39.96.118.192)
    Error: Failed to download metadata for repo ‘baseos’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried**

主要是镜像库丢了

https://mirrors.aliyun.com/centos/

修改报错的文件 在目录/etc/yum.repos.d 下面找
阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6_第1张图片

修改baseurl
阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6_第2张图片
要保证阿里云仓库数据
阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6_第3张图片
比如这个就没有
阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6_第4张图片
然后我把 代表8的这个" r e l e a s e v e r " 改 成 了 releasever" 改成了 releasever"releasever-stream
阿里云centos yum报错 - Status code: 404 for https://mirrors.aliyun.com/centos/centos/8/AppStream/x86_6_第5张图片

你可能感兴趣的:(linux,centos,阿里云,服务器)