[Bug 1317920] Re: update-notifier does not user configured system proxy when downloading files with package-data-downloader

Marco Gaiarin gaio at linux.it
Fri Aug 1 07:30:18 UTC 2014


No, now it raise:

/etc/cron.daily/update-notifier-common:
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 239, in process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 94, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 240, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 203, in open
    return self.open_unknown_proxy(proxy, fullurl, data)
  File "/usr/lib/python2.7/urllib.py", line 222, in open_unknown_proxy
    raise IOError, ('url error', 'invalid proxy for %s' % type, proxy)
IOError: [Errno url error] invalid proxy for http: '"http://proxy:8080/"'

I've tried without quotes (").

-- 
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/1317920

Title:
  update-notifier does not user configured system proxy when downloading
  files with package-data-downloader

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

Bug description:
  The script /etc/cron.daily/update-notifier-common fails trying to
  download extra files with package-data-downloader when called by cron.

  /etc/cron.daily/update-notifier-common:
  Traceback (most recent call last):
    File "/usr/lib/update-notifier/package-data-downloader", line 239, in process_download_requests
      dest_file = urllib.urlretrieve(files[i])[0]
    File "/usr/lib/python2.7/urllib.py", line 94, in urlretrieve
      return _urlopener.retrieve(url, filename, reporthook, data)
    File "/usr/lib/python2.7/urllib.py", line 240, in retrieve
      fp = self.open(url, data)
    File "/usr/lib/python2.7/urllib.py", line 208, in open
      return getattr(self, name)(url)
    File "/usr/lib/python2.7/urllib.py", line 345, in open_http
      h.endheaders(data)
    File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
      self._send_output(message_body)
    File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
      self.send(msg)
    File "/usr/lib/python2.7/httplib.py", line 791, in send
      self.connect()
    File "/usr/lib/python2.7/httplib.py", line 772, in connect
      self.timeout, self.source_address)
    File "/usr/lib/python2.7/socket.py", line 571, in create_connection
      raise err
  IOError: [Errno socket error] [Errno 101] Network is unreachable
  flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.356.orig.tar.gz

  Update-notifier-common works wenn called from the terminal. The system
  proxy is correctly set in /etc/environment and /etc/apt/apt.conf. The
  problem is fixed by adding the following 2 lines at the start of
  /etc/cron.daily/update-notifier-common:

  . /etc/environment
  export http_proxy

  Peter

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: update-notifier 0.154.1
  ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri May  9 15:37:41 2014
  InstallationDate: Installed on 2014-04-29 (9 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-notifier
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list