Link to home
Start Free TrialLog in
Avatar of primaims
primaims

asked on

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
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

try to run

yum clean all

and try again as it could be a dns issue or congested time
Avatar of primaims
primaims

ASKER

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?
Why do you need to use IP address rather FQDN ?
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
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.


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
ASKER CERTIFIED SOLUTION
Avatar of primaims
primaims

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial