You are here

flashplugin-installer: Unable to download plugin from

Submitted by Druss on Sat, 2013-03-16 16:55

Attempting to update flashplugin on Ubuntu Precise resulted in an error. Removing the package and reinstalling it resulted in the following:

$ sudo aptitude install flashplugin-installer 
The following NEW packages will be installed:
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,026 B of archives. After unpacking 139 kB will be used.
Preconfiguring packages ...             
Selecting previously unselected package flashplugin-installer.
(Reading database ... 210592 files and directories currently installed.)
Unpacking flashplugin-installer (from .../flashplugin-installer_11.2.202.275ubuntu0.12.04.1_i386.deb) ...
Processing triggers for update-notifier-common ...
flashplugin-installer: downloading
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/", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/", line 239, in retrieve
    fp =, data)
  File "/usr/lib/python2.7/", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/", line 344, in open_http
  File "/usr/lib/python2.7/", line 954, in endheaders
  File "/usr/lib/python2.7/", line 814, in _send_output
  File "/usr/lib/python2.7/", line 776, in send
  File "/usr/lib/python2.7/", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable
Setting up flashplugin-installer ( ...

So, it seems as if the URL is not resolving. However, googling around showed me that this error was intermittent and particular to certain geographies which is characteristic of DNS issues. So what I did was log into my work server and ping which gave me the IP which was different from what the addressed resolved to on my other server (which was

Fixing this is as simple as editing your /etc/hosts file and adding the following line at the bottom:

... and saving the file. This must, of course, be done as root (sudo). This should tell Linux that actually lives at and not to bother using DNS to resolve it further.

Once this was done, I was able to update the package without any issues.