programming について調べたことを整理していきます

How to solve the yum ** http://mirror.centos.org/centos/6/SCL/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 ** error in Centos6.5 server.

After installing centos-release-SCL yum package in CentOS 6.5 server, installing other yum package was failed. Error message is same as below.

$ sudo yum install libcurl
http://mirror.centos.org/centos/6/SCL/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: scl. Please verify its path and try again

The reason of this is about new yum repo setting file in /etc/yum.repos.d/ . If I install centos-release-SCL package, CentOS-SCL.repo file was created in /etc/yum.repos.d/ .

# CentOS-SCL.repo
# The Software Collections  ( SCL ) repository contains rpms for newer 
# software that can be installed alongside default versions
# Look at http://wiki.centos.org/AdditionalResources/Repositories/SCL
# for more details about how this repository works

name=CentOS-$releasever - SCL

In this file, baseurl is set to http://mirror.centos.org/centos/$releasever/SCL/$basearch/ . But this url might be already deprecated. For example, in this url. http://mirror.centos.org/centos/6.5/

There is only readme file in this repo.

To resolve this problem, I removed /etc/yum.repos.d/CentOS-SCL.repo

$ sudo rm /etc/yum.repos.d/CentOS-SCL.repo

And cleaned yum cache.

$ sudo yum clean all

After doing this, the probleam was resolved.