error 503: service unavailable when using apt-get update behind proxy

Posted by ubuntu2man on Ask Ubuntu See other posts from Ask Ubuntu or by ubuntu2man
Published on 2011-02-15T20:16:31Z Indexed on 2011/02/15 23:34 UTC
Read the original article Hit count: 801

Filed under:
|

Hi,

I am using a transparent proxy (other box). When I try to do an 'apt-get update' I get these warnings (in german):

...

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/source/Sources.gz  503  Service Unavailable

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz  503  Service Unavailable

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/multiverse/source/Sources.gz  503  Service Unavailable

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-i386/Packages.gz  503  Service Unavailable

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/binary-i386/Packages.gz  503  Service Unavailable

W: Fehlschlag beim Holen von http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz  503  Service Unavailable

E: Einige Indexdateien konnten nicht heruntergeladen werden, sie wurden ignoriert oder alte an ihrer Stelle benutzt.

I changed ~.bashrc:

http_proxy=http://192.168.120.199:8080
https_proxy=https://192.168.120:8080
export http_proxy
export https_proxy

I wrote on commandline:

export http_proxy=http://proxyusername:proxypassword@proxyaddress:proxyport
sudo apt-get update

And I edited /etc/apt/apt.conf:

Acquire::http::proxy "http://192.168.120.199:8080/";
Acquire::ftp::proxy "http://192.168.120.199:8080/";

Nothing has worked.

Does anyone knows how to make apt-get working through a transparent proxy?

Regards,

ubuntu2man

© Ask Ubuntu or respective owner

Related posts about apt-get

Related posts about proxy