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?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/651229

Title:
  update manager doesn't use proxy authentication info and gets no
  internet access

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to