When AliCloud ESC virtual machine centos system yum updates, errors like 404 will be encountered:
http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror.
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
After research, Blueleaf found that many of Alibaba Cloud's yum sources are incomplete, which led to the above errors, and the yum source could not be updated. The solution is to modify the file according to the following steps to solve the yum source error of Alibaba Cloud centos system. If you know the command, log in to ssh and use the command to modify it. If you are a novice, you can use winscp to log in and download it /etc/yum.repos.d/ Under directory CentOS-Base.repo 、 epel.repo File.
![Click to view the original picture Alibaba Cloud centos system yum source error resolvent.png](https://lanye.org/content/uploadfile/202101/5d661611755475.png)
Put the following URL in the CentOS-Base.repo file http://mirrors.aliyun.com/centos/ http://mirrors.aliyuncs.com/centos/ http://mirrors.cloud.aliyuncs.com/centos/ Modify to http://mirrors.aliyun.com/centos-vault/centos/ Put the Enabled=1 Modify enabled=0
Disclaimer:
Website: Click Copy to share with friends!
All content resources shared by this website, if not noted, are original by Blueleaf. If you need to reprint, please indicate the source; Please contact us in case of infringement Contact handling 。 Please understand!