https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11ON0Hhn
官网直接一行代码搞定
**错误:
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 下面找
修改baseurl
要保证阿里云仓库数据
比如这个就没有
然后我把 代表8的这个"
r
e
l
e
a
s
e
v
e
r
"
改
成
了
releasever" 改成了
releasever"改成了releasever-stream