LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-18-2012, 01:53 PM   #1
linuxreza
Member
 
Registered: Jan 2012
Location: Mumbai, India
Distribution: Redhat
Posts: 30
Blog Entries: 1

Rep: Reputation: Disabled
Cannot retrieve repository metadata (repomd.xml) for repository


Hello Linux guys,
I have installed Fedora 16. my computer is not connected to any network or not to internet. it is a standalone computer.
i am trying to configure a repository in my system. i copy the entire dvd in /mnt/ directory.
than i install createrepo .rpm then i configure the /etc/yum.repos.d/feroranew.repo file, as bellow.

[Fedora 16]
name=fedora new repos
baseurl=file:///mnt/
enabled=1
gpgcheck=0

then i run the command createrepo by changing the directory into /mnt/
mnt # craterepo .

run the following command

#yum clean all
#yum update

but after when i tried to install any thing by using yum comand then i got the following error

# yum install sambha


Cannot retrieve repository metadata (repomd.xml) for repository ; check the path and try again.

**** Please help me ***********
 
Old 03-19-2012, 02:33 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,413

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Quote:
Cannot retrieve repository metadata (repomd.xml) for repository ; check the path and try again.
Create repo.disabled inside /etc/yum.repos.d :

Code:
[root@fedora16 ~]# mkdir /etc/yum.repos.d/repo.disabled

[root@fedora16 ~]# ls /etc/yum.repos.d/
fedora16.repo fedora.repo  fedora-updates.repo  fedora-updates-testing.repo  repo.disabled
Then move all these 3 repo files into “repo.disabled” folder :

Code:
[root@fedora16 ~]# mv /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/repo.disabled
[root@fedora16 ~]# mv /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/repo.disabled
[root@fedora16 ~]# mv /etc/yum.repos.d/fedora-updates-testing.repo /etc/yum.repos.d/repo.disabled
List out the updated files and folders inside /etc/yum.repos.d :

Code:
[root@fedora16 ~]# ls -l /etc/yum.repos.d/
total 8
-rw-r--r--. 1 root root   92 Mar 18 00:09 fedora16.repo
drwxr-xr-x. 2 root root 4096 Mar 18 01:27 repo.disabled
Note : Only file fedora16.repo and folder repo.disabled should be exist.

Run yum clean all to clear up your yum cache directory :

Code:
[root@fedora16 ~]# yum clean all
After cleaning up you can use yum as usual.
 
Old 03-19-2012, 02:35 PM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,413

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
You can also check from this link: http://linuxinternetworks.com/distri...at-and-fedora/
 
Old 05-04-2012, 11:52 AM   #4
linuxreza
Member
 
Registered: Jan 2012
Location: Mumbai, India
Distribution: Redhat
Posts: 30
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thanks you very much
 
Old 09-23-2013, 06:22 AM   #5
TRISHUL BUDDHA
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
Smile

Hi , Thanks a lot for the fix.
Could you please explain how did it work ??
 
Old 05-22-2014, 11:16 PM   #6
riyazm
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
Yum wasn't working untill I found the solution from this forum

Dear all,

I had a same issue that I was unable to install samba sever thru YUM. It has throwed the same error for me too however after following your instructions its got fixed. Thanks for your solution.

Can you please let me the reason behind the cause and how to predict such issues, that would greatful me to know from you.

Thanks
Riyaz M
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot retrieve repository metadata (repomd.xml) for repository: anaconda-RedHatEnter anand1.unix Linux - Server 0 08-18-2011 05:59 PM
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 4 07-19-2010 07:42 PM
Cannot retrieve repository metadata (repomd.xml) for repository kapshure Linux - Server 2 07-19-2010 10:25 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration