CentOS system Yum Source Use Error: Error:cannot retrieve repository metadata (Repomd.xml) for Repository:rpmforge.

Source: Internet
Author: User
Tags aliyun

Yum on the server was suddenly bad to use, and when Yum was used, the error was as follows:
[email protected] src]# Yum list
......
Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was
14:pycurl ERROR 7-"couldn ' t connect to host"
Http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14]
Pycurl ERROR 7-"couldn ' t connect to host"
Trying other mirror.
Error:cannot Retrieve repository metadata (Repomd.xml) for Repository:rpmforge.
Verify its path and try again

Workaround:
Download new Centos-base.repo to/etc/yum.repos.d/
[Email protected] src]# cd/etc/yum.repos.d/
[Email protected] yum.repos.d]#

1) Download connection for centos5.*:
[Email protected] yum.repos.d]# Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-5.repo

2) Download connection for centos6.*:
[Email protected] yum.repos.d]# Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo

3) Download connection for centos7.*:
[Email protected] yum.repos.d]# Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo

Then execute the following command:
[Email protected] yum.repos.d]# rpm-e rpmforge-release--nodeps
[email protected] yum.repos.d]# Yum Clean all
[[email protected] yum.repos.d]# Yum update

Finally, using Yum again is OK.
[email protected] yum.repos.d]# Yum list

CentOS system Yum Source Use Error: Error:cannot retrieve repository metadata (Repomd.xml) for Repository:rpmforge.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.