LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot retrieve repository metadata (repomd.xml) for repository (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-retrieve-repository-metadata-repomd-xml-for-repository-935134/)

linuxreza 03-18-2012 01:53 PM

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 ***********

Satyaveer Arya 03-19-2012 02:33 PM

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.

Satyaveer Arya 03-19-2012 02:35 PM

You can also check from this link: http://linuxinternetworks.com/distri...at-and-fedora/

linuxreza 05-04-2012 11:52 AM

Thanks you very much

TRISHUL BUDDHA 09-23-2013 06:22 AM

Hi , Thanks a lot for the fix.
Could you please explain how did it work ??

riyazm 05-22-2014 11:16 PM

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


All times are GMT -5. The time now is 08:18 PM.