Flash 10 RC on Ubuntu amd64
Posted by ushimitsudoki on August 20, 2008
Lately, Flash has been acting pretty funky and I wanted to upgrade to the latest player. Adobe has never really supported the 64-bit platform very well, so I was really putting it off.
However, today I really needed to look at a YouTube video (seriously), and I couldn’t get it to play … so I decided it was time to bite the bullet…
*** UPDATE: YOU DO NOT WANT TO USE THIS SCRIPT! ***
This script was for installing 32-bit Flash 10 on 64-bit Ubuntu. Now that Adobe has released a 64-bit Flash, you should NOT be trying to install 32-bit Flash on 64-bit Ubuntu any longer.
Here is a blog entry about installing the new native 64-bit Flash.
Important Note: Although this script worked fine for me and many others, there is a list of concerns with it posted on the Ubuntu Forums. You might want to check that out to be informed before proceeding.
I’ll spare you the errors I ran into, but if you see things like:
*** NSPlugin Viewer *** ERROR: libcurl.so.3: cannot open shared object file: No such file or directory
…don’t be discouraged.
First off, these are the two references that I used to get things working:
My Science Is Better: Install Adobe Flash Player 10 on Ubuntu 64bit
Don’t run that script or anything yet, because you also need to read a bit from this Ubuntu Forums thread to get all the libs that are needed under amd64!
(If you do run the script you will get the NSPlugin Viewer errors for the missing libs. You can just install them with getlibs and continue on.)
Step One: Get getlibs
This is a package that will grab libs, 32 and 64-bit under amd64 (and 32-bit only under i386.)
Step Two: Run the script
This is a very slightly modified script which combines what you need to do from both of the above posts. It is 99% what “My Science is Better” already had – I only added the bit about grabbing the libs and updating the flash player file name.
#!/bin/bash # Script created by # Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com # Super minor updates by jason.melton[at]gmail[dot]com # Released under GPL echo "Stopping any Firefox that might be running" sudo killall -9 firefox echo "Removing any other flash plugin previously installed:" sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper sudo rm -f /usr/lib/mozilla/plugins/*flash* sudo rm -f ~/.mozilla/plugins/*flash* sudo rm -f /usr/lib/firefox/plugins/*flash* sudo rm -f /usr/lib/firefox-addons/plugins/*flash* sudo rm -rfd /usr/lib/nspluginwrapper echo "Installing ia32-libs and nspluginwrapper" sudo apt-get install ia32-libs nspluginwrapper echo "Getting libs" sudo getlibs -p libcurl3 sudo getlibs -p libnss3-1d sudo getlibs -p libnspr4-0d echo "Installing Flash Player 10" cd ~ wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz tar zxvf install_flash_player_10_linux.tar.gz sudo cp install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/ sudo chmod +rx /usr/lib/mozilla/plugins/libflashplayer.so rm -rf ~/install_flash_player_10_linux/ sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so echo "Linking the libraries so Firefox can find it." sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/ sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/ echo "Done :-)"
After this, you should see “Shockwave Flash” as a plugin if you type in “about:plugins” in the browser bar.
YouTube is working fine now!

Thomas said
Thanks, this looks nice :) However, instead of an error about not finding libcurl.so.3 i’m now confronted with an error about:
*** NSPlugin Viewer *** ERROR: libssl3.so: cannot open shared object file: No such file or directory
nspluginwrapper: no appropriate viewer found for /usr/lib/mozilla/plugins/libflashplayer.so
This is probably due to getlibs failing to do it’s job correctly:
The following i386 packages will be installed: libcurl3
Continue [Y/n]? y
Downloading …
Installing libraries …
The following i386 packages will be installed: libssl3-1d
Continue [Y/n]? y
W: Unable to locate package libssl3-1d
E: No packages found
libssl3-1d was not found in your repositories
Make sure you have all repositories enabled and updated
No packages to install
The following i386 packages will be installed: libspr4-0d
Continue [Y/n]? y
W: Unable to locate package libspr4-0d
E: No packages found
libspr4-0d was not found in your repositories
Make sure you have all repositories enabled and updated
No packages to install
Any hints?
ushimitsudoki said
Thomas,
So sorry! I mistyped the lib names there. Please try again or just note the spelling difference for both those!
I have updated the script.
blink4blog said
any ideas why flash video at youtube appeared to be in grey box after loading…?
ushimitsudoki said
blink4blog,
No. I have noticed that Flash sometimes stops working and if I close/re-open Firefox, then the videos will load and play.
Don’t know if this is a Flash issue or 32-bit on 64-bit issue or what.
lazybit said
Hey, very nice, thank you.
Works like a charm.
Just make sure getlibs are installed, i somehow managed to read over that part. Maybe it’s to late :-)
haha, thanks again.
Flash 10 beta on ubuntu 64 with firefox « lazy-bit said
[...] at me and ubuntu there is a very nice script, and [...]
Josh said
Everything installed fine enough however … the promised fixes are not apparent? The wmode is still not working properly .. even going to adobe.com their menu is behind the flash elements. Very very disappointing. Lets hope that they fix it.
OpenMind Policy » Blog Archive » Flash Player su 64 bit: La Svolta said
[...] questa guida ==> questa ..no questa <== oh al [...]
matt schick said
Thanks for the sexy script, it worked just as advertised. I had to install the flash 9 debug player for doing flex development so I modified the script. Below is a link to the script in it’s entirety with modifications to install the flash 9 debug version:
http://schickm.com/hotlinks/flash_debugger_install_script.sh.txt
grateful_dead said
Couldn’t get any flash 9 plugins to work for whatever reason, this worked first time, thanks loads!
eulerdgraca said
Worked just fine for me! Saved me hours of googling around. Thanks!
Ed Daniel said
Can you help re: GetLibs commands as per below
sudo getlibs -p libcurl3 (this worked)
But…
sudo getlibs -p libnss3-1d
sudo getlibs -p libnspr4-0d
Threw:
… was not found in your repositories
Make sure you have all repositories enabled and updated
No packages to install
Any ideas?
ushimitsudoki said
Ed,
You have to get getlibs first – check out “Step One” – before running the script.
Winston said
You are GOD!!! Thanks heaps for all that work! :)
Chris said
There’s a new version of the adobe flash beta 10 plugin for linux released on the 15th of September.
Here’s the direct link:
http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_install_linux_091508.tar.gz
I guess the script should be updated to download this one instead (hopefully this version has some bug fixes).
ushimitsudoki said
Chris,
Thanks!
Script updated!
Justin said
I’m having the same problem that Ed had where the first lib is working but the second two are not. I have getlibs installed and the libs are in my repositories but it is telling me they are not. Any help would be greatly appreciated.
Somoose said
I’m also having the same problem that Ed and Justin are having. Any suggestions would be appreciated. Thank you so much for the post and the script.
Anonymous gangsta said
Thnaks a lot, works great!
neried7 said
Hey! This worked wonderfully. Thank you for putting all the pieces together that are scattered across multiple forums and threads. Thanks again!
Flash 10 on Firefox with Ubuntu 64 bit via script « Ubuntu’n’stuff said
[...] http://meandubuntu.wordpress.com/2008/08/20/flash-10-rc-on-ubuntu-amd64/ [...]
FreeFoxTV » Installer Flash RC 10 sur Ubuntu AMD64 bits said
[...] Origine du script sur ce site web. Random PostsMa 1ère facture d’électricité PoweoLe site d’Algérie Poste piratéFreeFoxTV change de peauGoogle Algérie : http://www.google.dz Suivez les commentaires au sujet de cet article en flux RSS 2.0. Vous pouvez aussi laisser un commentaire tout de suite ou faire trackback à partir de votre site web ou blog. Tags: flash player 10 sur ubuntu 64bits, flash player ubuntu 64, Ubuntu 64bits flash player 10 [...]
Yohann said
Thanks a lot from France. You are a great man !
Travis Bailey said
I would recommend adding a line after the copy of the flash so to ensure the flags are set correctly.
sudo chmod +rx /usr/lib/mozilla/plugins/libflashplayer.so
I happen to have a permissions mask that only gives rights to the owner.
Matt Hartley said
Tried this on two PCs with Ubuntu Heron 8.04 – fails each and every time. Installs fine, however it’s too bad the browser thinks there is no Flash plugin – vanilla installs of Ubuntu 64 in each case…too bad, really. Traced the problem to detection of
sudo getlibs -p libnss3-1d
The following i386 packages will be installed: libnss3-1d
Continue [Y/n]? y
libnss3-1d was not found in your repositories
Make sure you have all repositories enabled and updated
No packages to install
(this is crap as I checked and it is indeed, installed)
If this goofed your systems like it did on my, reinstalling nspluginwrapper and flashplugin-nonfree seems to fix it.
Matt Hartley said
Okay, this did work for me:
http://twinturbo.org/linux/howto-installing-flash-player-10-on-64-bit-linux/
It is a lot more to do, but it seems to prevent whatever issue I had above with the libnss3-1d file.
LinuxLover said
Great script! Worked flawlessly!
After a mojor upgrade, Adobe Flash Player plug-in stopped working with Firefox on a 64-bit Ubuntu system. Rather than try to recall what I had done to get Flash and Firefox working together in a 64-bit linux enviornment, found, examined, and ran your script – which as you acknowledge is based upon work of others. It worked perfectly the first time.
So a big THANK YOU to you for sharing the script.
Cory McCluskey said
Thank you! This worked perfectly for me.
Daniel said
Big thanks!!!!
onurgunduz said
works for me too
halfpi said
Great, is working. FF and Opera play youtube with sound and well on my Ubuntu 64
Thanks, the trick with getlibs did all the magic. :)
Rock said
I tried the script (after using your former script, and found some problems):
The rm of nspluginwrapper made the newly installed nspluginwrapper unexecutable – a apt-get –reinstall install nspluginwrapper fixed that problem.
And last but not least, the ending echo “Done :-)” Produced a syntax error, seems like, the : is the problem.
thx anyways, this way of installing is just awesome :)
Sean said
Just wanted to say thank you. the script worked and I have flash. Nice job and again thank you. Now back to VirtualBox so I can get my paid job done.
Sean
Brian said
Thank you so much! Spent hours trying to figure out how to get flash on my computer. This guide was SOOO HELPFUL!!! Everything worked perfectly. I downloaded and installed the necessary files and just copied the script into a blank text file and entered the steps right in terminal.
skateoroma said
I have tried every site I can find to get flash working on hardy AMD64, and it still doesn’t work. I continue to receive the error below with every script I try.
/usr/lib/nspluginwrapper/i386/linux/npviewer.bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
nspluginwrapper: no appropriate viewer found for /usr/lib/mozilla/plugins/libflashplayer.so
Any suggestions?
Thanks for your help…
ushimitsudoki said
Skateorama,
You no longer need to use nspluginwrapper, because Adobe has released a native 64-bit edition of Flash. (nspluginwrapper is used to “wrap” the 32-bit Flash so 64-bit OS can use it – that’s why it can be a bit “hinky”.
This guide is old and was for installing the 32-bit Flash in 64-bit Ubuntu.
You might want to look here: http://meandubuntu.wordpress.com/2008/11/18/real-64-bit-flash-on-amd64/
In the end, you should NOT be using nspluginwrapper in any way.
The1 said
After I went to your link: “http://labs.adobe.com/downloads/flashplayer10.html”,
I downloaded the file and extracted it to my desktop. After that, I used sudo mv to move the file from my desktop to my plugin directory.
sudo mv SOURCE /home/the1/libflashplayer.so DEST /usr/lib64/firefox/plugins
That was the exact script. Substitute the1 with your folder name and I hope it works for you, too. I got an error, but the file transfered for me anyway. I’m running Ubuntu Ultimate 2.0 64bit.
i was having problems, so I tried this. I hope this helps others.
64 bit joy said
Well done. Excellent script … and it works !
FLash AMD64 ubuntu! phew! « Web Vulture said
[...] I found a web-page which has a script written to do it all. But as it says you will need getlibs before you get lucky –> http://meandubuntu.wordpress.com/2008/08/20/flash-10-rc-on-ubuntu-amd64/ [...]