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

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  503  Service Unavailable

W: Fehlschlag beim Holen von  503  Service Unavailable

W: Fehlschlag beim Holen von  503  Service Unavailable

W: Fehlschlag beim Holen von  503  Service Unavailable

W: Fehlschlag beim Holen von  503  Service Unavailable

W: Fehlschlag beim Holen von  503  Service Unavailable

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

I changed ~.bashrc:

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 "";
Acquire::ftp::proxy "";

Nothing has worked.

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



share|improve this question
+1: I have same problem with my university's network. I need to specify authentication (my network username and password), but apt don't see them – sorush-r Feb 15 '11 at 20:23
what authentication method does the proxy support ? – João Pinto Feb 15 '11 at 20:43
Sorry for confusing. This is a transparent proxy. Does this one need an authentification? I did not use any password. This export... statement is just a copy and paste error. – user10905 Feb 15 '11 at 21:03
up vote 1 down vote accepted

I don't think that you can do anything with this on your box. 503 is the answer from the proxy. If you were sure, it's the good proxy what you set ( then it's not your problem, but the administrator's of the proxy. If it's you, then it's another question but then you need to ask about the proxy, what kind of proxy software it is, and so on. This is the case, if you are very sure you set up things well. However you wrote: export http_proxy=http://proxyusername:proxypassword@proxyaddress:proxyport Now I am totally confused, do you need password based authentication? If no, why did you wrote username/password there? And what was "proxyaddress:proxyport, the same as you wrote about before,

If I were you, I would kill all of these modifications in files you mentioned, and I would try only to set up http_proxy and etc parameters. When it works, you have time to modify things if you don't want to set up manually each time. So, revert those modifications, and type only this:


export http_proxy

apt-get update

It will work, if your proxy is really on port 8080 and it really does not need authentication, and your proxy administrator granted some kind of access to your machine or not rejecting it.

Also please note that what you wrote about is not a transparent proxy. Transparent proxy is something what you don't even need to set up, since the outgoing traffic is automatically "grabbed" and redirected to force through the proxy (that's why it's "transparent": you don't even need to specify it). What you have to set manually: that's not a transparent proxy.

share|improve this answer
LGB,thanx. I don't know why but the last days no 'apt-get update' was possible. Also using launchpad was not be able. But today (maybe after deleting the stuff) update is working. – user10905 Feb 16 '11 at 21:36

Had the same problem today. I'm both the user and the proxy admin. Downloads from would fail with a 503 service unavailable error, whereas downloads from other mirrors (e.g. completed without issues, despite both having to pass through the same proxy.

(For the record, the proxy machine and the server from which the apt commands were issued are physically different.)

This makes me think the error might be related to a temporary unavailability of upstream server.

share|improve this answer
Update: retried after a while, and the error was gone. Definitely temporary unavailability of upstream server. – Marcello Romani Sep 11 '14 at 6:58

Your Answer


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