To configure Yum source errno could not open/read Repomd.xml error resolution

Source: Internet
Author: User
Tags aliyun
[root@fancy yum.repos.d]# yum MakecacheLoaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base:mirrors.aliyun.com
* C6-media:
* extras:mirrors.aliyun.com
* updates:mirrors.aliyun.com
Base | 3.7 KB 00:00
Base/group_gz | MB KB 00:00
base/filelists_db | 6.4 MB 00:06
base/other_db | 2.8 MB 00:02
File:///media/CentOS/repodata/repomd.xml: [Errno] could not open/read File:///media/CentOS/repodata/repomd.xml
Trying other mirror.
File:///media/cdrecorder/repodata/repomd.xml: [Errno] could not open/read File:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
File:///mnt/cdrom/repodata/repomd.xml: [Errno] could not open/read File:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Error:cannot Retrieve repository metadata (Repomd.xml) for Repository:c6-media. Please verify its path and try again

The solution is to turn the local source off: Change the/etc/yum.repos.d/centos-media.repo inside enabled=1 to Enabled=0
Because the order of the Yum should be the local source first, then the network source.

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.