Comment 6 for bug 651229

Revision history for this message
Henning Moll (drscott) wrote : Re: update manager doesn't use proxy authentication info and gets no internet access

init_proxy is correctly retrieving the proxy configuration (host, port and user/password if any) and also sets up the proxy for use by urlib2. It also exports the information to the environment (os.putenv("http_proxy",proxy)).

Now it comes to /usr/lib/apt/methods/http. This tool is successfully called by Core/MyCache.requiredDownload(). It seems that the exported environment setting is used. Note, that the tool is called diretly this time.

Later on, /usr/lib/apt/methods/http is used indirectly via "aptd". The problem is, that the process of aptd does not have http_proxy in its environment.

i can confim that setting proxy information in /etc/apt/apt.conf resolve the (later) problem. But Ubuntu should be usable without editing conf files. Either gnome-network-properties should also modify /etc/apt/apt.conf (system wide) or update-manager needs to 'tell' aptd the missing info.

btw: the comment for function init_proxy suggests that it would "first check for http_proxy environment (always wins)". But it doesn't or do i miss something?