PDA

View Full Version : [ubuntu] Sources.list issue



martincho90
April 4th, 2014, 07:00 PM
Hi

Any time I run apt-get update or try to install any program from apt-install seems to be it's trying to connect to the old server:
sudo apt-get update
0% [Conectando a 200.42.56.146 (200.42.56.146)]
The I got the error time out:
Err http://br.archive.ubuntu.com precise-updates/universe Translation-en
No se pudo conectar a 200.42.56.146:8080:

This is my sources.list:
################################################## ###########
################### OFFICIAL UBUNTU REPOS ###################
################################################## ###########

###### Ubuntu Main Repos
deb http://br.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

###### Ubuntu Update Repos
deb http://br.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://br.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://br.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://br.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

I coud find that the 200.42.56.146 is coming from the apt.conf file:
Acquire::http::proxy "http://200.42.56.146:8080/";

Is there any way to remove or change that?
I just moved the file and uncommented the line but it's still trying to connect there.

Regards
Martin

steeldriver
April 4th, 2014, 08:10 PM
If the configured proxy is unresponsive you could try telling apt to ignore it - I *think* the syntax is


sudo apt-get -o Acquire::http::proxy=DIRECT update

martincho90
April 4th, 2014, 10:33 PM
If the configured proxy is unresponsive you could try telling apt to ignore it - I *think* the syntax is


sudo apt-get -o Acquire::http::proxy=DIRECT update

Many thanks steeldriver!
Solved!