Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I get apt to use a mirror close to me, or choose a faster mirror?

I was trying to install emacs and I got a bunch of errors like this:

Failed to fetch  Could not connect to ( - connect (111: Connection refused)

I tried apt-get update but it gives an error too. So I found out that port 8118 is used by Tor. Tor is not running right now and proxy settings are on automatic. What can I do?

share|improve this question

marked as duplicate by Jorge Castro, Nitin Venkatesh, Amith KK, izx, jokerdino Aug 18 '12 at 6:59

This question was marked as an exact duplicate of an existing question.

The mirror might be having problems, see the question I just linked to pick another one. – Jorge Castro Aug 16 '12 at 2:32
See this answer to disable the systemwide proxy. – izx Aug 16 '12 at 3:32

Check your connection. The repository IP could'nt be caus it localhost IP

share|improve this answer
That's the proxy address. So the problem is likely with his proxy/VPN. – Marco Ceppi Aug 16 '12 at 3:28
Also, the port is 8118. – hexafraction Aug 18 '12 at 17:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.