阿里雲 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml
阿里雲 'everything': Cannot download repomd.xml: Cannot download repodata/repomd.xml
阿里雲yum安裝軟件報錯
故障原因:由於cenos8停服,后繼版本為8-steam.
查看阿里雲上的https://mirrors.aliyun.com/centos/8 發現文件已經不完整,我直接把8更換為了8-stream
這個是阿里雲官方解決辦法:https://help.aliyun.com/document_detail/405635.html
下面是我以前的處理方法:
刪除或移走/etc/yum.repos.d內的CentOS-AppStream.repo,CentOS-epel.repo
編輯/etc/yum.repos.d/CentOS-Base.repo 替換為以下內容,
# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-8-stream - Base - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/8-stream/BaseOS/$basearch/os/ gpgcheck=1 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official #additional packages that may be useful [extras] name=CentOS-8-stream - Extras - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/8-stream/extras/$basearch/os/ gpgcheck=1 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official #additional packages that extend functionality of existing packages [centosplus] name=CentOS-8-stream - Plus - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/8-stream/centosplus/$basearch/os/ gpgcheck=1 enabled=0 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official [PowerTools] name=CentOS-8-stream - PowerTools - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/8-stream/PowerTools/$basearch/os/ gpgcheck=1 enabled=0 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official [AppStream] name=CentOS-8-stream - AppStream - mirrors.aliyun.com failovermethod=priority baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/$basearch/os/ gpgcheck=1 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
然后執行
yum clean all
yum makecache
會發現問題已經解決,centos8 替換成centos8-steam后,對系統的影響還不知道,暫時問題解決,可以順利yum安裝mysql等軟件