之前就知道 Flash Player 安裝在 64bit Linux
上面不是很好解決,包括我在內,我想應該很多人都會被這個問題搞得半死。明明看起來好像裝好了,但是在 Firefox 就是怎樣都不能看見
Flash 影片。網路上有不少 deb 檔下載下來,不是衝突就是不能安裝。因此這邊紀錄一下解決方法。
然後把所有 Flash 相關的 Plugin 都移除掉
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common
mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
為了保險起見,請再度確認以下四個目錄下面的 Flash Plugin 都被清空了 (如果還有 Flash 相關檔案,請手動刪除)。
/usr/lib/mozilla/plugins/
~/.mozilla/plugins/
/usr/lib/firefox/plugins/
/usr/lib/nspluginwrapper
安裝ia32-libs 和 nspluginwrapper
sudo apt-get install ia32-libs nspluginwrapper
到 Adobe Labs Downloads 下載最新的 tar.gz 檔案,解壓縮之後,把 libflashplayer.so 複製到 /usr/lib/mozilla/plugins/
接著用 nspluginwrapper 安裝 Flash Player 並且建立 symbol link
sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
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/
接著重新啟動 Firefox 就可以生效了。