Centos Appstream Error
[root@hecs-221218 network-scripts]# yum install rsync
CentOS-8 - AppStream 3.4 kB/s | 394 B 00:00
Errors during downloading metadata for repository 'AppStream':
- Status code: 404 for https://repo.huaweicloud.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 61.172.228.200)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决办法:
修改/etc/yum.repos.d/CentOS-AppStream.repo
中的baseurl
为
baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/