swisstech.net

tech and photography

Installing/Upgrading flash on Ubuntu behind a proxy

2013-10-01

This just refused to work because the flashplugin-installer that actually downloads the packet doesn’t honor the http_proxy environment variable to I had to do a little hack to get this going. It’s actually pretty simple: download the file and serve it from localhost so we don’t need the proxy at all.

First shell:

Second shell:

  • unset http_proxy
  • vi /etc/hosts
    ==> add an entry so that “archive.canonical.com” points at 127.0.0.1 and save the file
  • aptitude install flashplugin-installer
  • vi /etc/hosts and remove the newly added entry

Stop the python http server and you’re done.