UbuntuHelp:RestrictedFormats/Flash/zh
出自Ubuntu中文
| 点击翻译: |
English • 中文 |
Adobe currently provides the latest version of Flash for Linux x86 only.
Note for non-x86 computers: Adobe Flash Player is only available for x86. Playing Flash on PPC and AMD64 distributions of Ubuntu is possible, however - see amd64andppc below.
flashtrouble Troubleshooting information is provided below.
The Adobe Flash player is not free software. You may want to investigate the freealternatives free alternatives section.
目录 |
[编辑] Ubuntu 7.04 (Feisty Fawn)
- Enable the Multiverse repository if you have not yet done so.
- Due to a recent bug, you should probably also enable the "proposed updates" repository. See UbuntuUpdates. (This will no longer be necessary once the bug is fixed. See flashtrouble Troubleshooting below.)
- Install the package flashplugin-nonfree.
- Extra Step for Konqueror. In Konqueror, click Settings → Configure Konqueror. Scroll down the side to Plugins. Click Scan for new plugins
- Restart your web browser. Flash should now work.
[编辑] Ubuntu 6.10 (Edgy Eft)
This method will install the latest flashplayer from the Ubuntu repositories, for Firefox, Konqueror, Mozilla, Epiphany and other browsers.
- Enable the Multiverse repository if you have not yet done so.
- Install the package flashplugin-nonfree.
- Restart your web browser. Flash should now work.
[编辑] Ubuntu 6.06 LTS (Dapper Drake)
[编辑] Installing from the Repositories
This method will install the latest flashplayer from the Ubuntu repositories, for Firefox, Konqueror, Mozilla, Epiphany and other browsers.
- Add the Backports repository
- Install the package flashplugin-nonfree. You will need to have added the Multiverse component for this package to be present.
- Extra Step for Konqueror. In Konqueror, click Settings → Configure Konqueror. Scroll down the side to Plugins. Click Scan for new plugins
- Restart your web browser. Flash should now work.
Note the package flashplugin-nonfree does not work if you are behind a proxy server:
- The following will download the TGZ from http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash
- Make a note of your install location of Firefox which is probably /usr/lib/firefox
$ sudo -i # wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz # tar zxvf install_flash_player_9_linux.tar.gz # cd install_flash_player_9_linux/ # ./flashplayer-installer # exit
- Note that if you install flash in this manner, you will not automatically receive updates for Flash through Ubuntu's package manager.
[编辑] Free Software alternatives to Adobe's Flash Player
There are two open-source Flash player implementations currently under development. They are Gnash and Swfdec. If you are running Ubuntu 7.04, Gnash and Swfdec are available as Ubuntu packages from the Universe repository.
- Gnash can be installed by downloading the mozilla-plugin-gnash package.
- Swfdec can be installed by downloading the swf-player package.
For help on installation please refer to this wiki page: Package Managers If you are running Ubuntu 6.10, Gnash is available in the Backports repository. The following packages must be installed: gnash, konqueror-plugin-gnash and mozilla-plugin-gnash. Anchor(amd64andppc)
[编辑] Flash for AMD64 and PPC
Currently there is NO Adobe Flash implementation available for 64-bit processors. However, two options exist:
- You can easily install a 32-bit version of Firefox and Flash without a chroot, see AMD64/FirefoxAndPlugins for more information or here for an automated install script.
- Install one of the free alternatives instead, as described in the freealternatives section above.
[编辑] Gutsy Gibbon
Flash is installable for AMD64 by Synaptic or apt with the flashplugin-nonfree package.
sudo apt-get install flashplugin-nonfree
[编辑] Troubleshooting
- "md5sum mismatch" is a recently introduced bug caused by Adobe updating the installer without changing its file name. Enable "proposed updates" to install a fixed version of the Flash installer. See UbuntuUpdates and bug #125131
- If Flash doesn't load in Firefox/Konqueror after doing the above, you can re-download the plugin from scratch by issuing the following:
sudo update-flashplugin
- Sound
Symptoms:
- Flash videos stop playing after 1 second.
- Firefox freezes when going to another page after having tried to view a flash video.
- The Firefox process not correctly ending after having tried to view a flash video.
Possible Fixes: If the sound is not working properly after you installed flash or you experience one of the above symptoms, try one of the following solutions:
- Install the alsa-oss package.
- Edit the Firefox rc script:
sudo nano /etc/firefox/firefoxrc
- Add/Change line:
FIREFOX_DSP="aoss"
- If you are using SwiftFox, you could make it working the same way as Firefox by patching the /usr/lib/swiftfox/run-mozilla.sh file. Here are the steps:
- Save the following code to a file, let's call it swiftfox_oss_patch.diff
--- /usr/lib/swiftfox/run-mozilla.sh.orig 2006-08-23 16:19:43.000000000 +0300
+++ /usr/lib/swiftfox/run-mozilla.sh 2006-08-23 16:30:48.000000000 +0300
@@ -163,7 +163,30 @@
##
## Run the program
##
- "$prog" ${1+"$@"}
+ if [ -f /etc/firefox/firefoxrc ]; then
+ . /etc/firefox/firefoxrc
+ fi
+ if [ -z "${FIREFOX_DSP}" ]; then
+ #FIREFOX_DSP="auto"
+ FIREFOX_DSP="none"
+ # esddsp is dreadful, see https://launchpad.net/malone/bugs/29760
+ fi
+ ##
+ ## find /dev/dsp handler
+ ##
+
+ if [ "${FIREFOX_DSP}" = "auto" ]; then
+ FIREFOX_DSP=
+ if pgrep -u d -u esd >/dev/null 2>&1; then
+ FIREFOX_DSP=esddsp
+ elif pgrep -u d -u arts >/dev/null 2>&1; then
+ FIREFOX_DSP=artsdsp
+ fi
+ elif [ "${FIREFOX_DSP}" = "none" ]; then
+ FIREFOX_DSP=
+ fi
+
+ exec "${FIREFOX_DSP}" "$prog" ${1+"$@"}
exitcode=$?
if [ "$DEBUG_CORE_FILES" ]
then
- Apply the patch with the following command from your shell/console:
$ sudo patch -p0 <swiftfox_oss_patch.diff
- This should get your SwiftFox reading the /etc/firefox/firefoxrc file the way it does for Firefox.
- Restart Firefox and try your flash test page again.
If you're still having trouble, try installing libflash-mozplugin
- External soundcards
If you have an external soundcard (e.g. a USB sound device) you will have to explicitly select it as default.
$ asoundconf set-default-card "name of soundcard"
...where your "name of soundcard" is seen in square braces in the output of:
cat /proc/asound/cards
Running the asoundconf command as a user will make the change for that specific user. Running it as root will not make the change for all users.
- Konqueror settings
In Konqueror's plugin settings, tick "Use Artsdsp to pipe plugin sound through aRts".
- Video
If you use an Intel 855GM video card, ensure you set the X server color depth to 24 bits, otherwise you will probably experience Firefox crashes. See bug #14911 for more information about this.
- Fonts
If you are viewing a Flash video and you do not see any text, install the gsfonts and gsfonts-x11 packages.
[编辑] Further Resources
Adobe has a blog covering the development of Flash for Linux at: http://blogs.adobe.com/penguin.swf/
