LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum problem (https://www.linuxquestions.org/questions/linux-newbie-8/yum-problem-907525/)

shanky 10-11-2011 01:52 AM

yum problem
 
hii
i am using fedora 11 and i am trying to install certain packages using the coammand 'yum' but everytime i give a command using yum such as
yum search pybindgen ,or
yum list installed, or
yum install pyvizgraph

i always get
"Loaded plugins: refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again"

the yum packages are installed still i dont understand what the problem is..
someone please guide me..
thanks

colucix 10-11-2011 02:06 AM

Fedora 11 is a old release now and the packages have been moved to the archive directory on the fedora file server:
Quote:

ATTENTION
======================================
The contents of this directory have been moved to our archives available at:

http://archives.fedoraproject.org/pub/archive/fedora/
You have to change the base repository configuration file to gain access.

shanky 10-11-2011 02:10 AM

thanks a lot for your reply..
so what should be next step now ??

shanky 10-11-2011 02:13 AM

should i change to fc 15 or is it still possible to work on fc11 getting to install certain packages i wnt??

colucix 10-11-2011 02:24 AM

Installing a recent release is always advisable for security concerns. Anyway, if you want to stick to Fedora 11 for a while, you can still find the official packages in the repository cited above. In the file /etc/yum.repos.d/fedora.repo you have to comment out the mirrorlist line and uncomment the baseurl one. Then change the baseurl to
Code:

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
then try yum again.

shanky 10-11-2011 03:36 AM

so i should just open a new text file save it as fedora.repo type in the code and do
cp fedora.repo /etc/yum.repos.d/ and then try yum ..right??

colucix 10-11-2011 03:41 AM

Nope. You can just edit the existing /etc/yum.repos.d/fedora.repo file. No need to create one from scratch. You have to modify only two lines:
Code:

#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch

should become:
Code:

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch


shanky 10-11-2011 03:44 AM

thanks..one last thing..how do i get to open the file..i mean where do i find it..a little explaination could help me..sry really bad and new at this stuff..thanks..

ModServ 10-11-2011 03:46 AM

You can open&edit it using:

Code:

vi /etc/yum.repos.d/fedora.repo
or

Code:

nano /etc/yum.repos.d/fedora.repo
or

Code:

pico /etc/yum.repos.d/fedora.repo

shanky 10-11-2011 03:47 AM

also when i try to run this command for downloading a module
"./download.py -n gjc/ns-3-pyviz-dev"
i get no such file as ./download.py
is this because of the same reason that fc11 is no longer supported ??

---------- Post added 10-11-11 at 03:48 AM ----------

hi ModServ ,
thanks for the info.. :)

ModServ 10-11-2011 03:50 AM

No, That means there's no file with that name "download.py" in your current directory.

You welcome :)

shanky 10-11-2011 03:53 AM

ya i got that but actually that command was to add a pyviz module.got it from a blog on ns3 and by going through various posts in that..anyways i shall try it out soon and update the thread..thanks a lot

ModServ 10-11-2011 03:54 AM

Unfortunately, I'm not really familiar with FC :D

Good Luck :)

shanky 10-11-2011 11:23 PM

hiii colucix
i tried out what u told me to but this what i get on the console after changing the repo file
Loaded plugins: refresh-packagekit
http://archives.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -3] Temporary failure in name resolution>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

shanky 10-12-2011 12:52 AM

i changed the code as told..and when i type on the console as yum update
it shows the repo file ..but the first line tells me that the file contains parsing errors..
??


All times are GMT -5. The time now is 02:33 PM.