A better way to install a native Flash player on 64-bit Ubuntu
I’ve now got a Core 2 Duo laptop, so I’ve installed a 64-bit build of Ubuntu Linux (actually Xubuntu) for the first time, and I wanted to install the Flash player. Well, that’s not strictly true: I don’t much want it, but there’s no fully functional open alternative. Adobe have finally pulled out their fingers and released a native 64-bit Flash player, but the Ubuntu repositories contain a package that installs the 32-bit version (plus 32-bit libraries plus shims).
I’ve found a few places that explain how to install the native 64-bit plugin manually. I haven’t seen anyone explain how to install it properly, in a way that the package manager will actually track. Here’s how:
First, grab the 64-bit Flash plugin from Adobe (near the bottom of the page). At present, the latest version is 10.0.22.87; if that’s changed, update the commands below accordingly.
Next:
sudo apt-get install curl checkinstall mkdir flashplugin-nonfree-10.0.22.87 cd flashplugin-nonfree-10.0.22.87
Because there are three steps, I’ve written a script to wrap them:
curl -O http://po-ru.com/files/install-flash.sh chmod +x install-flash.sh
The next line will depend on where you downloaded the plugin to:
tar zxvf /path/to/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz
Finally, install it:
sudo checkinstall ./install-flash.sh
You can accept checkinstall’s defaults: it should figure out the name and version automatically from the directory name. checkinstall is a magic tool that wraps an installation in a fake root environment, watches what happens, builds a proper .deb package, and installs it. You can extend this technique to any software that you install by hand.
The advantage of this method over just copying is that if you decide that you don’t like it, you can remove Flash in the normal way via apt-get remove, and go back to your system’s original state.
2009-03-14 21:45 UTC. Comments: 4.
Takla
Wrote at 2009-03-14 22:52 UTC using Mozilla 1.9.0.6 on Linux:
Debian method:# apt-get install flashplugin-nonfree/unstable
On being installed it gets the 64 bit plug in from Adobe and installs it. There are no 32 bit dependencies.
That’s highly complex of course, because Debian is difficult and Ubuntu is easy ;-)
You could almost certainly download the flashplugin-nonfree from Debian unstable and install it in Ubuntu using gdebi with the same result.
Paul Battley
Wrote at 2009-03-14 23:13 UTC using Firefox 3.0.7 on Linux:
That’s a good point: the Debian package works just fine, and is even easier!It’s not strictly fair to compare Ubuntu’s releases with Debian’s unstable branch: by its nature, the latter takes more risks, and the plugin is officially only alpha.
peter
Wrote at 2009-03-17 17:45 UTC using Firefox 3.0.7 on Linux:
flashplugin-nonefree is rubbish, it crashed 1/10 times.Paul Battley
Wrote at 2009-03-17 17:53 UTC using Firefox 3.0.7 on Mac OS X:
Peter, I’m no fan of Flash, but it’s been completely stable for me (whereas version 9 on 32-bit used to crash with tedious regularity).