Comment 10 for bug 983559

Revision history for this message
Adrianna PiƄska (confluence) wrote :

For the record, I don't get a "connection timed out" or any other kind of error message -- if I interrupt the downloader with ctrl-c I get this traceback:

$ sudo -i /usr/lib/update-notifier/package-data-downloader
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.235.orig.tar.gz
^CTraceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 296, in <module>
    process_download_requests()
  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 267, in retrieve
    block = fp.read(bs)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
KeyboardInterrupt

Sometimes the traceback only goes as far as 'block = fp.read(bs)'.

Before I interrupt the downloader, I can observe the temporary downloaded file growing in /tmp/ until it reaches the full expected size. Then nothing happens. The downloader doesn't appear to detect that the download was successful. I'm assuming that this is some kind of problem in urllib.