All mirror URLs are not using ftp, http[s] or file
Because the support of centos6 has been officially stopped
To solve this problem, execute the following command:
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache
It’s OK
Read More:
- CentOS 8: No URLs in mirrorlist error [How to Solve]
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- Yum source error: [errno 14] HTTP Error 404 – not found
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- [Solved] Error (suppressible): (vsim-12110) All optimizations are disabled because the -novopt option is in effect…
- Resolving yum source-related issues: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
- Grep: How to Find All the Files Containing a String in Linux
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- [Solved] yum Install rpmdb Error: error: rpmdb: BDB0113 failed: BDB1507 Thread died in Berkeley DB library
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- [Solved] Keepalived Configurate Error: Unicast peers are not supported in strict mode
- Euopenler 21.09 sudo Yum Update Error: Errors during downloading metadata for repository ‘EPOL’
- Ansible Use yum module to install rpm Error: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate v
- How to Solve Yum Error: db5 error(30973)
- [Solved] Node uploads files to FTP server error: timed out while making data connection