LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2012, 12:54 AM   #1
himalayan
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Rep: Reputation: 0
yum repository error


Hello guys, I am trying to yum on centOS 6.0, but I getting following error since 2 days. Earlier it was working fine. please help me ASAP.


[root@cds-workstation Downloads]# yum install libhdf5_hl.so.6
Loaded plugins: aliases, auto-update-debuginfo, changelog, downloadonly, fastestmirror, filter-data, fs-snapshot, kabi, keys, list-data, local, merge-conf,
: post-transaction-actions, presto, priorities, protectbase, refresh-packagekit, remove-with-leaves, rpm-warm-cache, security, show-leaves,
: tmprepo, tsflags, upgrade-helper, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
* base: centosmirror.go4hosting.in
* c6-media:
* centosplus: centosmirror.go4hosting.in
* extras: centos.01link.hk
* updates: centos.01link.hk
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/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
 
Old 04-09-2012, 04:05 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Try http://forums.fedoraforum.org/showth...04#post1520004

But check that you can actually get onto the internet. ping some hostname and if those don't work, then do further troubleshooting. Error 14 seems to be connectivity issues. Since you said it worked before, check DNS setting etc. as per the linked posts.

Google has tons of hits on this issue.

Last edited by ericson007; 04-09-2012 at 04:06 AM.
 
Old 04-09-2012, 04:19 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
As ericson007 said

Most probably its a net connectivity issue so make sure you are connected to internet and your IP is not under some sort of firewall. It can also happen with restriction on your IP.

you can give a check with google DNS

Code:
nameserver 4.2.2.2
nameserver 8.8.8.8
 
Old 04-10-2012, 12:58 AM   #4
himalayan
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanx for the reply guys. The internet connection at my system is working very well. Internet is working fine. Few days back I was trying to connect my centos system with windows system using Telnet / VLC. So could I have unknowingly disturbed some port. But I can SSH the system using IP address by putty.
 
Old 04-10-2012, 01:29 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by himalayan View Post
Thanx for the reply guys. The internet connection at my system is working very well. Internet is working fine. Few days back I was trying to connect my centos system with windows system using Telnet / VLC. So could I have unknowingly disturbed some port. But I can SSH the system using IP address by putty.
is it VLC or VNC?

Code:
#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
 
1 members found this post helpful.
Old 04-10-2012, 02:08 AM   #6
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by himalayan View Post
Thanx for the reply guys. The internet connection at my system is working very well. Internet is working fine. Few days back I was trying to connect my centos system with windows system using Telnet / VLC. So could I have unknowingly disturbed some port. But I can SSH the system using IP address by putty.
So is it working now? I do not see what being able to putty into a machine on the LAN has to do with not being able to download from a repo on the net. I doubt there would be port disturbance as ssh is on 22 and VNC in the 5900 range. I doubt this is the cause. I bet it would probably have something to do with resolving hostnames over the net.
 
Old 04-10-2012, 02:35 AM   #7
himalayan
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Yup, it's working now, but how the hell gpgcheck was enabled. Anyways, it was VLC and not VNC. Thanx bro.
 
Old 04-10-2012, 03:15 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
It was not the gpg key which was the problem, it was the mirror link i.e base url
So if you think your problem is resolved kindly mark the thread as "solved"

Last edited by deep27ak; 04-10-2012 at 03:17 AM.
 
Old 04-12-2012, 08:10 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
All those errors start with
Code:
file:///media....
which means you still had/have the repo enabled that points to your local CD/DVD drive mount point.
Disable that unless you have no internet cxn.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
FC13 Yum repository error azsiouxboy Linux - Newbie 5 01-05-2011 03:19 AM
yum repository error parkarnoor Linux - Newbie 3 10-13-2010 11:11 PM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
error in configuration of Yum repository. Please help travellers Fedora 2 12-11-2005 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration