unable to update or install packages

Asked by shiro

Problem: Could not connect to localhost:4001(127.0.0.1).-CONNECT(111Connection refused)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
shiro
Solved:
Last query:
Last reply:
Revision history for this message
Felix Heinonen (fheinonen) said :
#1

Are you sure that you're connected to the internet?
And put the following to Terminal and post the output here:
ping google.com

Revision history for this message
shiro (kla67) said :
#2

I am surfing the net right now.

Revision history for this message
Rafael Sachetto (rsachetto) said :
#3

Are you trying to use what program to do this?
apt-get update on command line?
adept?

Revision history for this message
shiro (kla67) said :
#4

This does not answer my question. Whatever program I use, Synaptic, Terminal, or the Update Manager, which used to do it automatically, it is not connecting or finding the server, but I am connected to the internet.

Revision history for this message
Bjørn Sandåker (prognatus) said :
#5

Do you have a firewall blocking this, perhaps?
Often firewalls detect programs like Firefox and automaticly grants them access to Internet, but other programs may need manual interference to get access.

Revision history for this message
shiro (kla67) said :
#6

No. I have had Firestarter installed from the beginning and it has not interfered to this point.
111 (Connection refused)

Revision history for this message
proteus (proteus-cortex) said :
#7

Your output is:

localhost:4001(127.0.0.1).-CONNECT(111Connection refused)

Why is it trying to connect to your localhost and not to a server?

Revision history for this message
Felix Heinonen (fheinonen) said :
#8

Please post your sources.list

2007/9/13, John Kitsantas <email address hidden>:
> Question #13253 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/13253
>
> Status: Open => Needs information
>
> John Kitsantas requested for more information:
> Your output is:
>
> localhost:4001(127.0.0.1).-CONNECT(111Connection refused)
>
> Why is it trying to connect to your localhost and not to a server?
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
shiro (kla67) said :
#9

Thanks!!!

Revision history for this message
geordee (geordee) said :
#10

How did you solve this? I have installed Gutsy. I installed Trac on it. I am not able to connect to the server from within the same machine. However, I am able to connect and use the application from the network. Here is the ping results:

PING localhost (127.0.0.1) 56(84) bytes of data.
--- localhost ping statistics ---
14 packets transmitted, 0 received, 100% packet loss, time 13009ms

Revision history for this message
shiro (kla67) said :
#11

Under Administration, I selected Software Sources and changed where to download from. This seemed to
resolve my issue.