Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I just installed CentOS 6. I tried running yum update and was having trouble getting that to work, so I tried yum clean all and now my situation seems even worse than before. Based upon what I pasted below, can someone please help me fix my yum repository? Thanks.

[root@zedo-pc 1234]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirror.7x24web.net
 * extras: mirror.linux.duke.edu
 * updates: mirror.lug.udel.edu
Error: no such table: packages

[root@zedo-pc 1234]# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit
Cleaning up Everything
Cleaning up list of fastest mirrors

[root@zedo-pc 1234]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
 * base: mirror.lug.udel.edu
 * extras: mirror.symnds.com
 * updates: mirror.rackspace.com
Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again
share|improve this question
    
Please include the Yum repository file. Just a hunch though, but each time you run yum, you get a different mirror. Maybe there are a few bad/misconfigured mirrors in there? How many times have you ran it? Also, you should be able to reach those mirrors via http. Can you try plugging them into your web browser? –  Aaron Copley Sep 23 '11 at 15:04
    
Have you verified that both Internet (read networking) connectivity and name resolution are working properly? –  SpacemanSpiff Sep 23 '11 at 15:04
    
Where is the yum repository file you speak of located? It seems that the mirrors changed as a result of me running yum clean all. –  THE DOCTOR Sep 23 '11 at 15:05
    
@SpacemanSpiff - I'm not quite sure what you are suggesting that I check. Could you please be more specific? –  THE DOCTOR Sep 23 '11 at 15:10
    
Perhaps you could post the content of /etc/yum.conf, or the output of ls /etc/yum.repos.d. Another handy thing would be to mention any proxy setup etc you use. –  Danny Staple Sep 23 '11 at 21:56
add comment

migrated from serverfault.com Sep 23 '11 at 15:08

This question came from our site for professional system and network administrators.

3 Answers

I had a similar problem. All I did was renew my dhcp (dhcp -r) and it worked. I noticed the contents of /etc/resolv.conf had been changed.

share|improve this answer
add comment

Once you run yum clean all, try running yum makecache. Also check which repositories are enabled now (not that conf files could be goofed up) yum repolist

share|improve this answer
    
>>Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again This definitely looks a goofup in the configuration file to me. Identify the rogue configuration file with pattern /installmedia/i –  Nikhil Mulley Dec 2 '11 at 19:14
add comment

Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again This might indicate you have a repository configured and enabled that is looking for a local CD/DVD/ISO.

You can try to disable all repositories and enable them one by one to identify which one is causing the problem.

yum repolist all will identify all of the repositories configured.

yum check-update --disablerepo=\* --enablerepo=<reponame> Disables all repositories except the one (or ones) listed with --enablerepo (which can be specified multiple times).

You need to identify which repositories is causing the issue, then check that repositories configuration (in /etc/yum.conf or /etc/yum.repos.d/). If you need help with that post the relevant configuration.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.