Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 812
  • Last Modified:

How do i resolve my yum problem in centos 5.3



  I have installed Centos 5.3 in my pc. I want to update rpm packges using YUM. Here only
the problem started for me. I am getting error. I have mentioned the error below. Please give solution for my problem. In advance thank you very much for u.


[root@kkalyani yum.repos.d]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
[Errno 4] IOError: <urlopen error (104, 'Connection reset by peer')>
Error: Cannot find a valid baseurl for repo: rpmforge
0
primaims
Asked:
primaims
  • 3
  • 2
  • 2
1 Solution
 
omarfaridCommented:
try to run

yum clean all

and try again as it could be a dns issue or congested time
0
 
primaimsAuthor Commented:
I tried it.

I found it as dns issu. When i am browsing using http://apt.sw.be/, the result is ok. But, i m browsing it with
its ip, i.e., 193.1.193.67, it is pointing to http://freshrpms.net/. So, how can i resolve this problem?
0
 
omarfaridCommented:
Why do you need to use IP address rather FQDN ?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
Not all websites appear to be the same when you enter their IP address -- in fact, I'd rather guess that the VAST majority do not!

The obvious example is a hosting company:
 Suppose I'm yahoo and I'm hosting some 400,000 websites for 10,000 clients (or so)... you want me to assign a separate IP to each website (domain name)?? Ridiculous! There is ONE IP address for each server, each one of which probably hosts 10,000 websites or more. The web server is running "virtual domains" so that the location of the webpage is determined by WHAT you asked for...

If you type in the address, there will either be a virtual domain definition for that address, or you'll see the "default" page as defined in the server's configuration.

Another example: when you type in "http://whatismyip.com" you are directed to one of 3 IP addresses -- one of which is 72.233.89.198 (a REAL IP ADDRESS)... however, if you type in "http://72.233.89.198" you get a "parked domain" / generic webpage for "verycurious.com". Case in point.

I hope this resolves your question / curiosity about the FQDN vs. WAN-IP difference...

Good Luck!

Dan
IT4SOHO
0
 
primaimsAuthor Commented:
Thank you master. But, i m trying to update my Centos by using yum. I am getting the following error.

[root@kkalyani yum.repos.d]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
[Errno 4] IOError: <urlopen error (104, 'Connection reset by peer')>
Error: Cannot find a valid baseurl for repo: rpmforge.

I am not able to find, what is the extat problem.


0
 
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
OK... let's review how YUM (for a while now) works...

As your output snippet shows, the yum installation first looks for the "fastest" mirror list available (this is intended to help distribute the download burden to several global servers)...

In your case, it determines that the fastest one is based on a cached hostfile, which directs you to  http://apt.sw.be/redhat/el5/en/mirrors-rpmforge, which has a VERY narrow list of mirrors...

I suggest you remove the cache file:
  yum clean all

Then allow yum to re-test for fastest mirrors...
  yum update

Let us know your results (of both commands)

Good Luck!

Dan
IT4SOHO
0
 
primaimsAuthor Commented:
Thanks for support.I found the problem.The problem is due to my internal firewall.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now