Why does it say connection to local host refused when i am able to surf the net

Asked by walksponsored

Hi i am very new to Linux and when i installed it i was able to install a lot of packages and they worked. Now when i go to install a package i get this message - W: Failed to fetch http://ie.archive.ubuntu.com/ubuntu/pool/universe/f/firestarter/firestarter_1.0.3-1.1ubuntu4.1_i386.deb
  Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused) - i can't install anything now like plugins or updates even though i can go on the net, i am a beginner and do not want to mess my whole system up trying to fix it.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Hanusz leszek (leszek-skynet) said :
#1

Hello,

do you have "Direct Internet connection" selected in "System" > "Preferences" > "Network Proxy" ?

Revision history for this message
walksponsored (sponsoredwalk) said :
#2

Yes i do, I have no idea what to write in any of the other boxes.

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#3

No, It is normal, you don't need to change anything there.

Navigate to "System" > "Administration" > "Synaptic Package Manager"
Go to "Settings" > "Preferences"
Go to "Network" tab

Do you have "Direct connection to the internet" selected there ?

Revision history for this message
walksponsored (sponsoredwalk) said :
#4

yeah!

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#5

Hmm strange,

Can you download this package manually ?
Please paste this in a terminal and report the result here:
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/f/firestarter/firestarter_1.0.3-1.1ubuntu4.1_i386.deb

Revision history for this message
walksponsored (sponsoredwalk) said :
#6
Revision history for this message
Cesare Tirabassi (norsetto) said :
#7

Have you installed the anon-proxy package? If so you may want to remove it to solve this.

Revision history for this message
walksponsored (sponsoredwalk) said :
#8

I got rid of that package but this still comes up
W: Failed to fetch http://ie.archive.ubuntu.com/ubuntu/pool/universe/a/audacity/audacity_1.2.4b-2ubuntu2_i386.deb
  Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

W: Failed to fetch http://ie.archive.ubuntu.com/ubuntu/pool/universe/f/firestarter/firestarter_1.0.3-1.1ubuntu4.1_i386.deb
  Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

Revision history for this message
Peter Cruickshank (petercruickshank) said :
#9

please post the contents of your "/etc/hosts" file

Revision history for this message
Cesare Tirabassi (norsetto) said :
#10

Just restart, it should work.

Revision history for this message
walksponsored (sponsoredwalk) said :
#11

great thank you so much, just out of curiousity is there a package to watch windows media file types on the net? it always comes up intall missing plugins but firefox cannot find them, thank you very much!!!

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#12

This should answer all your needs:

https://help.ubuntu.com/community/RestrictedFormats

If not just ask (but please do it in a new question).

Thanks.

Revision history for this message
walksponsored (sponsoredwalk) said :
#13

Thanks Cesare Tirabassi, that solved my question.

Revision history for this message
turquoiz (shadow-dance) said :
#14

if a proxy is running then this error is common,
anon-proxy, proxify etc r few popular ones,
ensure that these are completely removed not just purged via adept or synaptic package manager
& reboot

Revision history for this message
pro003 (pro003) said :
#15

I can confirm that anon-proxy was directly causing this problem. Soon as I removed/purged it, wget was working again.
I just had to reboot.

Thanks guys.