Me and U(buntu)

My Ubuntu Experience!

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!

39 Responses to “Flash 10 RC on Ubuntu amd64”

  1. 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?

  2. 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.

  3. blink4blog said

    any ideas why flash video at youtube appeared to be in grey box after loading…?

  4. 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.

  5. 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.

  6. [...] at me and ubuntu there is a very nice script, and [...]

  7. 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.

  8. [...] questa guida ==> questa ..no questa <== oh al [...]

  9. 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

  10. grateful_dead said

    Couldn’t get any flash 9 plugins to work for whatever reason, this worked first time, thanks loads!

  11. eulerdgraca said

    Worked just fine for me! Saved me hours of googling around. Thanks!

  12. 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?

  13. Ed,

    You have to get getlibs first – check out “Step One” – before running the script.

  14. Winston said

    You are GOD!!! Thanks heaps for all that work! :)

  15. 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).

  16. Chris,

    Thanks!

    Script updated!

  17. 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.

  18. 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.

  19. Anonymous gangsta said

    Thnaks a lot, works great!

  20. neried7 said

    Hey! This worked wonderfully. Thank you for putting all the pieces together that are scattered across multiple forums and threads. Thanks again!

  21. [...] http://meandubuntu.wordpress.com/2008/08/20/flash-10-rc-on-ubuntu-amd64/ [...]

  22. [...] 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 [...]

  23. Yohann said

    Thanks a lot from France. You are a great man !

  24. 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.

  25. 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.

  26. 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.

  27. 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.

  28. Cory McCluskey said

    Thank you! This worked perfectly for me.

  29. Daniel said

    Big thanks!!!!

  30. onurgunduz said

    works for me too

  31. 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. :)

  32. 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 :)

  33. 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

  34. 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.

  35. 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…

  36. 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.

  37. 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.

  38. 64 bit joy said

    Well done. Excellent script … and it works !

  39. [...] 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/ [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>