163 yum source no longer supports CentOS version 6.6

Recently, I found that yum on the server is not very easy to use, and the following error is reported:

wrote
http://mirrors.163.com/centos/6.6/updates/x86_64/Packages/kernel-devel-2.6.32-504.30.3.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Try another mirror.

 

Go to http://mirrors.163.com/centos/6.6 to see a readme file, described as follows:

 

wrote
This directory (and version of CentOS) is deprecated. For normal users,
you should use /6/ and not /6.6/ 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.6
level, go to http://vault.centos.org/ for packages.

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

 

The pit father 163 deleted all the images of these sub-versions, leaving only the image 6.

 

Solution:

 

Find the /etc/yum.repos.d/CentOS6-Base-163.repo file, and modify all 6.6 in the file to 6 to restore the ability of yum.

such as putting

wrote
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6.6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6.6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

 All modified to

wrote
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326708385&siteId=291194637