CentOs6 yum源 centos/6.4/os/x86_64/repodata/repomd.xml報錯的解決方法


因為測試需要,安裝了CentOS 6.4,進行更新時yum提示不可用。

按照阿里雲開源鏡像(https://developer.aliyun.com/mirror/centos)的說明:

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
配置完成后,運行yum makecache時報錯,提示repomd.xml找不到,錯誤碼404.拷貝對應的地址到瀏覽器確實404打不開。

 

除了readme,什么也沒有了,readme文件內容如下:

This directory (and version of CentOS) is deprecated.  For normal users,
you should use /6/ and not /6.4/ in your path. Please see this FAQ
concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 6.4
level, go to http://vault.centos.org/ for packages. 

Please keep in mind that 6.0, 6.1, 6.2, 6.3 and 6.4 no longer gets any updates, nor
any security fix's.

后來查閱資料(https://wiki.centos.org/FAQ/General),是停止維護了

CentoS 6 停止維護更新日期2020年11月30日

CentOS 7 停止維護更新日期2024年6月30日

CentOS 8 停止維護更新日期2021年12月31日

 

還有一個阿里雲源(centos-vault)可以使用,整理內容如下,直接復制可用。

# 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-6.4 - Base
baseurl=http://mirrors.aliyun.com/centos-vault/6.4/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
 
[updates]
name=CentOS-6.4 - Updates
baseurl=http://mirrors.aliyun.com/centos-vault/6.4/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
 
[extras]
name=CentOS-6.4 - Extras
baseurl=http://mirrors.aliyun.com/centos-vault/6.4/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
 
[centosplus]
name=CentOS-6.4 - Plus
baseurl=http://mirrors.aliyun.com/centos-vault/6.4/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
 
[contrib]
name=CentOS-6.4 - Contrib
baseurl=http://mirrors.aliyun.com/centos-vault/6.4/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6

 OK,問題解決~

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 http://mirrors.163.com/centos/7.6.1810/os/x86_64/repodata/repomd.xml: [Errno 14] http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not res Mongodb安裝報錯https://repo.mongodb.org/yum/redhat/#releasever/mongodb-org/4.0/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for mongodb-org-4.0: Damaged repomd.xml file http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error" Trying other mirror.問題解決 Linux/Centos7 yum安裝失敗(出現repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found)的解決方法 centos 7 yum安裝失敗(出現repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found)的解決方法 ”failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try. http://mirrors.aliyun.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found“解決辦法 阿里雲安裝dockerErrors during downloading metadata for repository 'docker-ce-stable': - Status code: 404 for https://download.docker.com/linux/centos/3/x86_64/stable/repodata/repomd.xml (IP: 13.249.162.1 安裝時遇到:正在嘗試其它鏡像。 http://mirrors.btte.net/centos/7.2.1511/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.btte.net; 未知的錯誤" centos6 yum安裝軟件報錯Cannot retrieve repository metadata (repomd.xml) for repository: epel 的解決辦法
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM