5

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.
Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
null_radix
  • 924
  • 10
  • 13
  • Can you take a look at [this](http://askubuntu.com/questions/29071/apt-get-update-cannot-find-ubuntu-servers) 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
  • 2
    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
  • got it! i had to remove Acquire::http::proxy "http://localhost:8250/"; from /etc/apt/apt.conf – null_radix Mar 26 '12 at 21:20
  • 2
    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
  • Please mark your answer as `Answered` so that other people who come looking for an answer can know that it is actually a valid answer – Manish Sinha Mar 27 '12 at 21:16

1 Answers1

7

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

null_radix
  • 924
  • 10
  • 13