First, problem phenomenon

CentOS 6 yum:

1. 404

http://xxx/6/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: chromium-el6. Please verify its path and try again
Copy the code

Check whether the browser url authentication is a network problem or a source problem. If the problem is a network problem, modify network configurations such as the DNS. If the URL browser also reports 404, you need to change the yum source.

2. Yum install openSSL-devel failed because of the glibc-common version

Error: Package: glibc-2.12-1.132.el6.i686 (Rhel-source) Requires: glibc-common = 2.12-1.132.el6 Glibc - common - 2.12-1.149. El6. X86_64 (@ the anaconda - RedHatEnterpriseLinux - 201604140956. X86_64/6.8) glibc - common = 2.12-1.192. El6 Available: Glibc-common-2.12-1.132.el6.x86_64 (RHEL-source) glibc-common = 2.12-1.132.el6 You could try using --skip-broken to work  around the problem You could try running: rpm -Va --nofiles --nodigestCopy the code

This phenomenon also requires updating the YUM source.

Second, solutions

Sohu and Ali Cloud centos-Vault are the only existing yum sources of centos6 version in China. Netease 163, ali cloud has been completely failure (centos7 version download mirror wget -o/etc/yum repos. D/CentOS – Base. Repo mirrors.aliyun.com/repo/Centos…

1. Change the yum source

Repo = centos-base. Repo = centos-base. Repo = centos-base. Repo = centos-base.

  • Sohu yum source
[base] name=CentOS-6 - Base baseurl=http://mirrors.sohu.com/centos/6/os/$basearch/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 #released updates [update] name=CentOS-6 - Updates baseurl=http://mirrors.sohu.com/centos/6/updates/$basearch/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 [extras] name=CentOS-6 - Extras baseurl=http://mirrors.sohu.com/centos/6/extras/$basearch/ gpgcheck=1 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of  existing packages [centosplus] name=CentOS-6 - Plus baseurl=http://mirrors.sohu.com/centos/6/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users [contrib] name=CentOS-6 - Contrib baseurl=http://mirrors.sohu.com/centos/6/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6 #packages in testing [testing] name=CentOS-6 - Testing baseurl=http://mirrors.sohu.com/centos/6/testing/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirrors.sohu.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6Copy the code

Note: the $basearch distribution had better be written as 6, or you may have a problem with 2.

  • Ali cloud 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 # * * out baseurl= line instead. # # [base] name= centos-6.0-base baseurl=http://mirrors.aliyun.com/centos-vault/6.0/os/x86_64/ gpgcheck = 1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [updates] name = CentOS - 6.0 - updates baseurl=http://mirrors.aliyun.com/centos-vault/6.0/updates/x86_64/ gpgcheck = 1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [extras] name = CentOS - 6.0 - extras baseurl=http://mirrors.aliyun.com/centos-vault/6.0/extras/x86_64/ gpgcheck = 1 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [centosplus] name = CentOS - 6.0 - Plus baseurl=http://mirrors.aliyun.com/centos-vault/6.0/centosplus/x86_64/ gpgcheck = 1 enabled = 0 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 [contrib] name = CentOS - 6.0 - contrib baseurl=http://mirrors.aliyun.com/centos-vault/6.0/contrib/x86_64/ gpgcheck = 1 enabled = 0 gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6Copy the code

2. Clear the yum cache

yum clean all

3. Regenerate the YUM cache

yum makecache

4. Check whether the software package exists in the yum source

yum repolist

3. Reference links

404 CentOS 6 Yum install openSSL-devel failed because of the glibc-common version