Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-10-2012, 01:53 AM   #1
LQ Newbie
Registered: May 2012
Location: Chennai,India
Posts: 3

Rep: Reputation: Disabled
How to Solve ''url open error 111 - Connection Refused ''?

I have been facing this fatal error whenever i update yum or while trying to get access internet from command mode.This troubles me for a long time since i started my work in Linux based project.I put some of examples here.

the Command is:

PHP Code:
[root@localhost ~]# yum check-update 
and the OUTPUT is

PHP Code:
Loaded pluginsfastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist 
[url][/url] error was
[Errno 4IOError: <urlopen error (111'Connection refused')>
ErrorCannot find a valid baseurl for reporpmforge 
Next YUM make cache Command

PHP Code:
[root@localhost ~]#  yum makecache 

PHP Code:
Loaded pluginsfastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http
:// error was
[Errno 4IOError: <urlopen error (111'Connection refused')>
ErrorCannot find a valid baseurl for reporpmforge 
I got the same error.

Hope I will get help and get rid of this soon...!

Last edited by raguliit; 07-10-2012 at 01:58 AM.
Old 07-10-2012, 04:52 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
sounds like a local firewall / routing issue. that link works fine on the web, so there's something between your server and the internet that's killing it. Try curling that url and seeing if that fails in the same way, which is really should. Maybe you need to use a proxy?
Old 07-11-2012, 03:27 AM   #3
LQ Newbie
Registered: May 2012
Location: Chennai,India
Posts: 3

Original Poster
Rep: Reputation: Disabled

Can you pls just explain the procedure as steps hence it will be beneficial for me to locate the error part then and there? I am using proxy connection only as we provided. Where can i make the changes?

Last edited by raguliit; 07-11-2012 at 03:29 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR:Connection refused (111) annaabhi Linux - Server 1 05-24-2011 05:10 AM
Squirrelmial ERROR:Connection refused (111) shipon_97 Linux - Newbie 3 12-22-2010 07:46 AM
Error 111 ECONNREFUSED Connection refused mysonnysideup Linux - Networking 0 08-31-2010 01:04 AM
error: unable to connect to socket: Connection refused (111) ; Mukiri Linux - Newbie 1 05-04-2009 03:27 AM
RHN - Network error 111: Connection refused Adam555 Linux - Newbie 1 05-25-2004 12:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration