[Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml Trying other mirror.


After the configuration of proxy in Centos, the following error message occurs while we do yum update “[Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml  Trying other mirror”.

Solution:

Edit the file mentioned in the below path and make the enabled 0.

#vi /etc/yum.repos.d/CentOS-Media.repo

[c6-media]

name=CentOS-$releasever – Media

baseurl=file:///media/CentOS/

file:///media/cdrom/

file:///media/cdrecorder/

gpgcheck=1

enabled=0 <—make sure this is 0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

This solves the problem and you can run the yum update successfully.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: