问题:
centos8 yum 报错 yum Failed to download metadata for repo ‘AppStream’
解决办法:
把配置文件中 /etc/yum.repos.d 修改baseurl 成阿里云网址 :
cd /etc/yum.repos.d
vim CentOS-Base.repo
[BaseOS]
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial