nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Error while configuring Yum

This is a discussion on Error while configuring Yum within the Getting started tutorials forums, part of the Linux Getting Started category; I have a RHEL 5 server on which i had enable it to work as NFS share -- shares are ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-18-2007, 03:21 AM
linux_sym's Avatar
Junior Member
User
 
Join Date: Aug 2007
OS: Debian, GNU Linux
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
linux_sym is on a distinguished road
Default Error while configuring Yum

I have a RHEL 5 server on which i had enable it to work as NFS share -- shares are enable and while i configured yum -- created a repository to locate as /var/ftp/pub/Server -- /var/ftp/pub/images -- /var/ftp/pub/VT

Now when i do yum update all command on the prompt it gives me an error on screen
ftp://10.208.131.73:/var/ftp/pub/Server/repodata/repomd.xml: [Errno 4 IOError: error (-2, 'Name or Service not Known')>
Trying other mirror
Error: Cannot open/read repomd.xmlfile for repository: Server

Can you help what is causing this???

Also I tried the command createrepo to create a repository it is not allowing me to create it. please let me know what i am doing wrong here. its urgent....!

Last edited by linux_sym; 10-24-2007 at 09:53 PM. Reason: tried few steps so need advice
  #2 (permalink)  
Old 10-25-2007, 12:39 PM
nix's Avatar
nix nix is offline
Junior Member
User
 
Join Date: Feb 2007
Location: Pune, India
OS: Redhat, Sun Solaris
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nix
Default

Correct URL's in repositary file with ftp://10.208.131.73/pub/Server , ftp://10.208.131.73/pub/images , ftp://10.208.131.73/pub/VT

Check FTP Deamon, if not started, start it with /etc/init.d/vsftpd restart
Reply With Quote
  #3 (permalink)  
Old 10-25-2007, 06:28 PM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
vaibhav.kanchan is on a distinguished road
Default

Pls try this command.

restorecon -R /var/ftp/pub

check the contents of the files in this path it should be listed as user_public_content somthing like that.. selinux is also major reason behind this error message
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 11:44 AM
Junior Member
User
 
Join Date: Jul 2008
OS: Debian
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
R@hul is on a distinguished road
Default yum not working

firstly correct url is like this

ftp://10.208.131.73 /var/ftp/pub/Server

make sure in etc/yum.repos.d/Server.repo you have given name in capital letter means first letter of the name in capital & it applied with another server name too.

for ex:

[Rahul]
name=Rahul

...................................
............................
enabled=1
gpgcheck=0

[Virtulisation]
name=Virtulisation
...........................
enabled=1
gpgcheck=0

:wq

then go to the server side and run command
service vsftpd restart
service network restart

if it still not works
then run this too on servier side
service iptables stop

then come back to your client side (your sys on which problem arisen)
run cmd

service vsftpd restart

service network restart

it will work

then run cmd yum list

and install softwares..................
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
configuring DNS on Solaris 10 pappu08 Solaris/OpenSolaris 2 04-07-2009 04:39 AM
Configuring iscsi RHEL raj CentOS / RHEL / Fedora 1 11-26-2007 08:27 AM
Configuring disk quotas on Fedora Linux chimu Linux software 2 12-26-2006 10:18 AM
Invalid ICMP type 3 code 3 error to a broadcast -samba error raj Linux software 0 07-09-2006 04:38 AM


All times are GMT +5.5. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38