[Bug 880090] Re: "Ubuntu distro Upgrade Available" dialog ignores HTTP proxy settings when fetching release info

zub zub at linux.fjfi.cvut.cz
Tue Nov 15 23:50:26 UTC 2011


I see the code has changed substantially. I tried to reproduce it with
the old code, but I didn't manage to trigger the "new version of Ubuntu
is available" dialog. As the code has changed, possibly the issue is
gone.

Any idea on how can I test this - how can I force the "new version of
Ubuntu is available" dialog to appear? (I'm running 11.10 now, so now
update-manager has no reason to show me the dialog by itself.)

As for reproducing: The issue was a result of some proxy handling mess +
being on a network where the only way to the internet is via a proxy
(direct connection not allowed). E.g. this should reproduce the bug if
it's still there:

1) find/set up some proxy running on port != 80
2) disable outgoing connections on port 80 (something like: iptables -A OUTPUT -p tcp --dport 80 -j REJECT)
3) set up http_proxy + proxy in Apt (Acquire::http::Proxy "http://yourproxy:port";)
4) check that direct connection to the web does not work, but that connection via the proxy works
5) make update-manager show the "new version of Ubuntu is available" dialog; if the release notes/info document fetched by the update-manager via HTTP displays correctly, then the bug is gone

(if the document being fetched by the dialog is served by a HTTP server
on port other than 80, replace the 80 in the steps above with the port
number the server runs on.)

As an added bonus: try to use different proxies for APT and for
http_proxy and see which one is used for fetching the release notes/info
document. In the old code, I had the feeling that APT proxy took
priority over http_proxy, but I think for the web page load, http_proxy
should be used. And for APT the apt proxy. Admittedly, in real life, the
proxies will be the same, so this might be just splitting hairs.

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

Title:
  "Ubuntu distro Upgrade Available" dialog ignores HTTP proxy settings
  when fetching release info

Status in “update-manager” package in Ubuntu:
  Incomplete

Bug description:
  Release: Ubuntu 11.04 Natty

  The dialog announcing the availability of a new Ubuntu release seems
  to ignore HTTP proxy settings when it fetches a document from Ubuntu
  website - see the attached screenshot.

  Note that this is a cosmetic issue that affects the dialog only,
  update itself is not affected and works ok.

  As far as I know, the proxy is correctly set in the http_proxy
  environment variable, in the gnome proxy settings (whatever that does
  in the end...) and in apt configuration, so both apt and e.g. web
  browsing work ok on that box.

  I don't know the precise version of update-manager, but it happened
  recently, before I upgraded to 11.10, so I think whatever is the
  current version in Natty is affected (1:0.150.4?).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/880090/+subscriptions




More information about the foundations-bugs mailing list