Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know what libraries I have to install to play .swf files?

share|improve this question
up vote 12 down vote accepted

You can use the standalone flashplayer by Adobe :

But you can also open the file in your Internet browser if you have installed flash plugin.

share|improve this answer
Ok, I guess I had some sort of configuration problem. When I tried to install the flash plug-in into my browser it said it was already installed, but I still couldn't play the videos. An uninstall/reinstall fixed my problem. – jumpnett Oct 14 '10 at 18:27

Sorry, that didn't post right.

Edit /usr/share/mime/packages/ file and change

<mime-type type="application/">


<mime-type type="application/x-shockwave-flash">

and then run

sudo update-mime-database /usr/share/mime

and then reinstall flash player.

share|improve this answer
The real solution to play swf (shockwave flash) files in browsers while they just save or ask to save local swf files. (Pushing some keywords here.) – AliNa Sep 10 '14 at 23:33
No need to reinstall flash player here. After updating mime database it works. – AliNa Sep 10 '14 at 23:35
this works like a charm.. – Gaurav Sharma Dec 29 '14 at 11:13
Tested on Ubuntu 16.04 + Chrome. It works. Thanks a lot! – jap1968 May 9 at 11:22

How to open a .swf-file with Firefox browser

Right-click on the file. Choose Properties > Open With, then click on show other applications. Now you can add firefox in the list. Set it as default. Now double-click on the .swf-file.

It will open in the Firefox and play itself. I assume the flashplayer-plugin is already installed in Firefox, else it will ask you to install flashplayer-plugin. Follow the steps and you are good to go.

share|improve this answer

Another solution if you do not want to open it in web browser is you can install shockwave player for windows in Ubuntu via wine. I installed it and it's work fine.

share|improve this answer

Install swfdec-gnome install

Use latest Google Chrome (which has inbuilt flash support)

share|improve this answer – BigSack Jun 19 '12 at 9:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.