[Bug 1005837] Re: update-notifier-common

Torsten Hilbrich 1005837 at bugs.launchpad.net
Thu Jun 14 06:15:25 UTC 2012


I get this error because downloads need to use a HTTP proxy. The system
is configured to use the proxy (i.e. http_proxy environment variable is
set) but this environment setting is not used when installing packages
through the update-manager.

If I manually run

sudo -i /usr/lib/update-notifier/package-data-downloader

after I get this error everything works fine. The main difference is the
-i flag to sudo which enables the normal system environment (containing
the http_proxy variable) for the package-data-downloader.

http_proxy is set in /etc/environment:

http_proxy="http://proxy.example.com:3128/"

In addition, I got some proxy configuration in /etc/apt/apt.conf:

Acquire::http::proxy "http://proxy.example.com:3128/";
Acquire::ftp::proxy "ftp://proxy.example.com:3128/";
Acquire::https::proxy "https://proxy.example.com:3128/";
Acquire::socks::proxy "socks://proxy.example.com:3128/";

The fix was taken from https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/983559
Also https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/979477 seems to be related, however, there is a big mixup between honoring APT settings, system settings, allowing http_proxy to be passed via sudo, so I'm unsure if there is a duplicate bug situation or not.

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

Title:
  update-notifier-common

Status in “update-notifier” package in Ubuntu:
  Confirmed

Bug description:
  Does not understand proxy.

  Setting up update-notifier-common (0.119ubuntu8.2) ...
  flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.235.orig.tar.gz
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
      dest_file = urllib.urlretrieve(files[i])[0]
    File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
      return _urlopener.retrieve(url, filename, reporthook, data)
    File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
      fp = self.open(url, data)
    File "/usr/lib/python2.7/urllib.py", line 207, in open
      return getattr(self, name)(url)
    File "/usr/lib/python2.7/urllib.py", line 344, in open_http
      h.endheaders(data)
    File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
      self._send_output(message_body)
    File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
      self.send(msg)

  wget works fine.

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




More information about the foundations-bugs mailing list