Upgrading to Ubuntu 10.04 went remarkably smoothly, with the exception that audio in Flash was erratic. Sometimes it worked, sometimes it didn't. Since I use my PC as an entertainment system, this was pretty much a deal-breaker.

Googling for it got me no where. Apparently “no audio in flash” is the Ubuntu equivalent of “i have a headache” – it's a vague symptom that has multiple possible causes. Long story short, the problem was that I had both Flash 9 and Flash 10 installed. Firefox appeared to pick one at random (as far as I could tell), but audio only worked with 10. The solution was to delete Flash 9 – which I couldn't do from the package manager, because it turned out I had Flash 9 installed locally.

If this sounds familiar, type about:plugins in to the Firefox address bar. If you see two entries for Flash, then give the following a try:

rm ~/.mozilla/plugins/libflashplayer.so

This is probably the result of some tinkering I did before upgrading to 10.04. I doubt this will be a problem with a fresh install.

This blog post was posted to It's All Geek to Me on Sunday May 2nd, 2010 at 10:20AM
 

26 Responses to "No audio in Flash on Ubuntu 10.04"

  • May 2nd, 2010, 1:29 p.m.

    I had the same problem, only my came from having the folder actually using /usr/lib/adobe-flashplugin which was the wrong version. solution was to remove the folder, and to re-install flash 10.

  • mr
    May 2nd, 2010, 1:50 p.m.

    same thing happened to me. I didn't file a bug either. The multi billion $ Adobe can do that I think.

  • Joe Tennies
    May 2nd, 2010, 3:09 p.m.

    On my computer, opening “Sound Preferences” (off the volume control in the gnome-panel) fixes this. You can even have flash playing when you do it!

  • May 2nd, 2010, 9:40 p.m.

    Thanks for figuring this out. I've just been doing upgrades on the same Ubuntu install for about four years and I found something like half a dozen libflashplayer.so instances scattered throughout the system. I deleted all but the newest and viola, sound's working again. Thanks again.

  • disperso
    May 3rd, 2010, 3:25 p.m.

    Thanks, after one day reading forums and trying out every solution suggested, finally someone stumbled on yours and… it works! Grazie grazie grazie!

  • Johnny
    May 3rd, 2010, 8:17 p.m.

    Thanks! Removing all instances of libflashplayer.so and reinstalling flash 10 worked like a charm.

  • May 4th, 2010, 12:56 a.m.

    Thanks for this,

    I have been Googleing for a few days now trying to get this issue fixed. What you did, didn't resolve the issue for me but it did put me on the right track. I did had multiple versions of the flash plugin installed but just removing the .so didn't resolve it.

    I have a browse though my Synaptic and found that I had multiple flash plugins installed, I tried marking them all for complete removal but found that the package "adobe-flashplugin“ would not remove, I would get the error ”adobe-flashplugin: subprocess installed pre-removal script returned error exit status 2"

    I found that doing the following fixed this,

    sudo aptitude purge adobe-flashplugin

    This removed the last flash plugin from Synaptic so then I did the following to re-install flash

    sudo aptitude install flashplugin-nonfree

    Now everything is working, with audio.

  • Wouter
    May 5th, 2010, 12:10 p.m.

    Thanks for this solution!

    Just like everyone on here this pointed me in the right direction. Basically tinkering and fixing past problems left me with a flashplayer plugin that didn't work. Removing all options but one (and reinstalling it to be sure) works like a charm.

  • Chris
    May 6th, 2010, 12:41 p.m.

    Thank you for the suggestions. I tried almost all. Even installed flashplugin-nonfree-extrasound. However, none worked.

    Then I found out flash used my different sound card. I still have to find where I can change this setting.

  • jans
    May 6th, 2010, 1:54 p.m.

    Hello.

    Thank you for tip. I tried reinstalled flashplugin. However, none worked. Its worked for me.

    jans

  • Aca
    May 8th, 2010, 5:52 p.m.

    Thank you very much Will.

    Works for me too.

    Gives me a lot of headache, as my wife used this to say that with every upgrade of Ubuntu I am breaking something giving her the reason to use Windows instead :-)

    Best regards,

    Aca

  • Budgieboy
    May 11th, 2010, 12:31 a.m.

    Thanks for all the help. Just needed to purge flash plugin and re-install; now everything working.

  • Budgieboy
    May 12th, 2010, 6:09 p.m.

    Audio disappeared again- doh! seems the problem is flashplayer 9 and 10 conflict or some-such. Deleted the flashplayer.so file from usr/lib/flashplayer directory (as root) AND the flashplugin from .mozilla/plugins directory. Then used synaptic to uninstall the flashplugin-installer and flashplugin-nonfree packages. Rebooted and then reinstalled the flashplugin-installer and flashplugin-nonfree and bingo, audio now working in Firefox. If you right click on the flashplayer it reports version 10, which seems to be the one that works. Anyway it's been working for the last 24 hours. Fingers crossed!

  • Dave Harris
    May 14th, 2010, 5:47 a.m.

    Thank you-thank you. Nice clear instructions of where to find things and what to do.All working sweet.

  • Christian
    May 14th, 2010, 7:11 p.m.

    Thanks, works great

  • Ross
    May 16th, 2010, 3:10 p.m.

    Heno's solution worked for me. Thanks!

  • Paolo
    May 16th, 2010, 9:15 p.m.

    good

  • May 23rd, 2010, 3:34 a.m.

    Oh my goodness thank you so much. Was about to pull my hair out with the on again, off again video / sound issues this was causing me.

    Found a combination of Will's, Heno's and Budgieboy's fixes did the trick for me.

    Thanks guys!

  • June 3rd, 2010, 12:46 p.m.

    Yay! That actually worked!

  • June 30th, 2010, 4:32 a.m.

    Searched every for this solution. Thank you so much!

    For the newbies out there who think even this was a little too cryptic, here are some step by step instructions:

    1. open a terminal and ‘su’ to have root access.

    2. cd / to get to the root directory

    3. search all subdirectories for ‘libflashplayer.so’. To do this use this command: find . -name ‘libflashplayer.so’ -print

    4. write down all these occurences of libflashplayer.so

    5. Open synaptic package manager. Search for anything installed on your computer named flash and mark it for complete removal.

    6. I did the same thing for firefox. It will be reinstalled later on the correct version of libflashplayer.so

    7. Once everything is deleted, Use synaptic to reinstall adobe flash player. I installed these: flashplugin-installer, flashplugin-nonfree, flashplugin-nonfree-extrasound

    8. Reinstall firefox in synaptic.

  • June 30th, 2010, 4:35 a.m.

    Damn! I typed that quickly and i forgot that between step 6 and 7 there is another step. Once everything is deleted and your system is clean of firefox and flash, search for instances of libflashplayer.so again and delete any instances it finds. There shouldnt be any. Then proceed to step 7.

    my apologies.

  • JKO
    July 3rd, 2010, 8:12 p.m.

    THANK YOU! Tried everything else and your solution worked perfectly. Genius!

  • Jérôme
    July 16th, 2010, 6:09 p.m.

    Thanks a lot for that: I had first tried

    sudo aptitude purge adobe-flashplugin

    then

    sudo aptitude install flashplugin-nonfree

    but that would only work for one session i.e. until reboot.

    All sorted now.

  • A1an
    August 7th, 2010, 11:07 a.m.

    The flash plugin is indeed unstable; anyway, if audio stops working it may be a configuration issue, related to the setting saved in your home directory.

    Clearing everything in the local configuration directory may solve the problem without the need to re-install:

    rm -rf ~/.macromedia/Flash_Player/macromedia.com/support/flashplayer
  • August 17th, 2010, 3:33 a.m.

    Did:

    rm ~/.mozilla/plugins/libflashplayer.so

    Just you said in your article - nothing else. Works like a charm.

    You are a badass - I've been trying to find a solution since 10.04 came out. I am guilty of locally installing flash plugins, did the about:plugins, saw two, removed it - sound in flash.

  • andres
    August 21st, 2010, 12:16 a.m.

    Many thanks! I tried several “solutions” but the only one that worked was yours.

Leave a Comment

You can use bbcode in the comment: e.g. [b]This is bold[/b], [url]http://www.willmcgugan.com[/url], [code python]import this[/code]
Preview Posting...
Previewing comment, please wait a moment...
Will McGugan

My name is Will McGugan. I am an unabashed geek, an author, a hacker and a Python expert – amongst other things!

You are reading my tech blog. See the homepage for my other blogs.

Search for Posts
Possibly related posts
Tags
Popular Tags
 
Archives
2010
 
Recent Comments
Hehe Thats a good tatoo idea ;) Have a nice day Joel
- Joel Shapiro on Powered by Ubuntu
Weirdly enough i am a junior dev on an internship. I am @ work and i was way too bored/out ...
I love the idea of locidesktop, and even more the minimal UI. Hope you'll keep it up!
Many thanks! I tried several solutions but the only one that worked was yours.
Will, congratulations! This projects rocks out loud! I ever wanted a FS abstraction in python, it is REALLY useful for ...
- Gabriel Falcão on PyFilesystem 0.3 released
 
© 2008 Will McGugan.

A technoblog blog, design by Will McGugan