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 - 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 05-06-2014, 09:30 AM   #1
Nicol
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Unhappy Error: Cannot retrieve repository metadata (repomd.xml) .PLEASE HELP !


Hello !
I am trying to create a local repository , but an error occured.



[root@localhost yum.repos.d]# yum update


Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.pidginhost.com
* extras: mirrors.pidginhost.com
* updates: mirrors.pidginhost.com
file:///media/net/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/net/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: myrepo. Please verify its path and try again

This is the content of the netinstall.repo :
[myrepo]
name=myrepo
baseurl=file:///media/net/
enabled=1
gpgcheck=0

I don't know what I did wrong
 
Old 05-06-2014, 02:40 PM   #2
Nicol
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile Answer

I think I found the answer . I forgot to use createrepo in order to create thex ml-based rpm metadata.
Then , the complete answer would be :
#cd /media
#createrepo .
#cd /etc/yum.repos.d
# vim netinstall.repo
[myrepo]
name=myrepo
baseurl=file:///media
enabled=1
gpgcheck=0
#yum update
PS:[root@localhost yum.repos.d]# mount|grep netinstall
/ISOs/CentOS-5.10-x86_64-netinstall.iso on /media/net type iso9660 (rw,loop=/dev/loop0)

As you can see , /ISOs/CentOS-5.10-x86_64-netinstall.iso is mounted on /media/net ,and I created the repo in /media and the baseurl is ///media .

I hope i didn't forget anything .
I think it is okay .
Sorry , I 've just started learning Linux .
 
  


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
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-fre Luis.Villamagua Red Hat 3 10-23-2013 12:45 PM
yum update error on client: Cannot retrieve repository metadata (repomd.xml) yogesh29sharma Linux - Newbie 2 05-30-2011 08:30 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 AM.

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