Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Im trying to run sudo apt-get update. I know the server is up and my internet is working. any clues?

sudo apt-get update

Err http://ppa.launchpad.net oneiric InRelease  
Err http://archive.canonical.com oneiric InRelease
Err http://ppa.launchpad.net oneiric Release.gpg
  Unable to connect to localhost:8250:
Err http://archive.canonical.com oneiric Release.gpg
  Unable to connect to localhost:8250:

Reading package lists... Done
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/oneiric/InRelease  
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/oneiric/Release.gpg   
  Unable to connect to localhost:8250:
W: Some index files failed to download. They have been ignored, or old ones used instead.
share|improve this question
Can you take a look at this and see if it helps? If yes, it's a duplicate. If not then it rules out DNS issues. –  Tom Brossman Mar 26 '12 at 20:36
I can resolve the servers so I don't think that it is a DNS issue. –  null_radix Mar 26 '12 at 20:46
Have you installed tor or another similar proxy / IP shaping software? –  Bruno Pereira Mar 26 '12 at 21:07
yes awhile ago. I start poking around and found that http_proxy was set to localhost:8250. So I unset it and restarted, but apt-get is still trying to talk to localhost:8250 –  null_radix Mar 26 '12 at 21:14
Please answer your question by hitting the 'Answer my own question' button so that others will know a solution was found. :) –  Huckle Mar 26 '12 at 22:41

1 Answer 1

up vote 2 down vote accepted

Had to remove the line Acquire::http::proxy "localhost:8250/";; from /etc/apt/apt.conf

share|improve this answer
Please consider marking this question as answered by using the gray/green button left to the answer :) –  Rafał Cieślak Mar 28 '12 at 20:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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