Issues installing/upgrading Flash Ubuntu 12.04 behind a proxy.

I recently came across an issue whilst updating the flashplugin-installer on Ubuntu 12.04 behind a network proxy (apt was configured to use the proxy and all other updates worked fine just not Flash).

I got the following error whilst attempting to update,

Preparing to replace flashplugin-installer 11.2.202.310ubuntu0.12.04.1 (using …/flashplugin-installer_11.2.202.310ubuntu0.12.04.1_amd64.deb) …
Unpacking replacement flashplugin-installer …
Processing triggers for update-notifier-common …
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.310.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)
File “/usr/lib/python2.7/httplib.py”, line 776, in send
self.connect()
File “/usr/lib/python2.7/httplib.py”, line 757, 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 110] Connection timed out
Setting up flashplugin-installer (11.2.202.310ubuntu0.12.04.1) …

The fix was to download the file manually.

wget http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_xx.x.x.x.orig.tar.gz

Then modifying /usr/lib/update-notifier/package-data-downloader.

You might want to back this file up first. The ‘x’ represent version numbers.

cp -v /usr/lib/update-notifier/package-data-downloader /usr/lib/update-notifier/package-data-downloader.bak

Then open the file and look for dest_file = urllib.urlretrieve(files[i])[0]

And replace with dest_file = urllib.urlretrieve(“/pathtofile/adobe-flashplugin_xx.x.x.x.orig.tar.gz”)[0]

Now run,

aptitude install flashplugin-installer

to install Flash using the recently downloaded source.

 

Linux, Ubuntu , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

5 + nine =