LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 10: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, 03: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


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
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 11:55 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-fre Luis.Villamagua Red Hat 3 10-23-2013 01:45 PM
yum update error on client: Cannot retrieve repository metadata (repomd.xml) yogesh29sharma Linux - Newbie 2 05-30-2011 09:30 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 08:23 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 02:22 AM


All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration