nixCraft Linux Forum

nixCraft

Linux 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 ...


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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-18-2007, 03:21 AM
linux_sym's Avatar
Junior Member
User
 
Join Date: Aug 2007
My distro: Debian, GNU Linux
Posts: 3
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
Sponsored Links
  #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
My distro: Redhat
Posts: 5
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
Junior Member
User
 
Join Date: Jul 2007
Location: Hyderabad
My distro: Redhat RHEL, Solaris
Posts: 28
Rep Power: 0
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
My distro: Debian
Posts: 3
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

Bookmarks


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 On

Similar Threads

Thread Thread Starter Forum Replies Last Post
configuring DNS on Solaris 10 pappu08 Solaris/OpenSolaris 1 04-01-2008 09:10 PM
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 08:09 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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