Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 791
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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