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.

後來查閱資料,是停止維護了

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,問題解決~

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章