重要提示:Adobe Flash Player 已於 2020 年 12 月 31 日正式停止支援與分發,所有主流瀏覽器 (Chrome、Firefox、Edge、Safari) 均已移除 Flash 支援。本文僅供歷史環境維護參考,新專案請勿使用 Flash。
# 1. 啟用 Canonical Partner 倉庫 (含 flashplugin-installer)
sudo add-apt-repository "deb https://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
sudo apt update
# 2. 安裝
sudo apt install flashplugin-installer
# 或舊版包名
sudo apt install adobe-flashplugin
# 從 Adobe 存檔頁下載 (現已下線,需從可信鏡像獲取)
wget https://archive.canonical.com/ubuntu/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20201208.1-0ubuntu1_amd64.deb
sudo dpkg -i adobe-flashplugin_*.deb
sudo apt -f install
# Ubuntu 16.04+ 透過 pepperflashplugin-nonfree
sudo apt install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install
# Firefox/瀏覽器訪問
about:plugins
# 或訪問 Adobe 官方測試頁 (已下線)
# 現可用測試頁:https://helpx.adobe.com/flash-player.html (僅顯示版本資訊)
| 場景 | 現代技術棧 | 遷移路徑 |
|---|---|---|
| 視頻播放 | HTML5 <video> + H.264/VP9/AV1 + MSE/EME (DRM) | 使用 Video.js、Plyr、Shaka Player、hls.js |
| 動畫/互動 | HTML5 Canvas / WebGL / WebAssembly / CSS Animation / Lottie | Animate CC 導出 HTML5 Canvas;Rive、LottieFiles |
| 舊系統內嵌 SWF | Ruffle (Rust 寫的 Flash Player 模擬器) | 引入 <script src="ruffle.js"> 自動模擬 SWF |
| 企業內部舊應用 | Enterprise Browser (Chrome Enterprise、Edge IE Mode) + Flash 組件隔離 | 微軟 Edge IE Mode 支援至 2029 年,嚴格限制域名 |
| 遊戲 | Unity WebGL / Godot Web / Three.js / Phaser / Cocos Creator | 重構或使用 WebAssembly 移植 |
# 1. 下載 Ruffle (自託管)
wget https://github.com/ruffle-rs/ruffle/releases/latest/download/ruffle-selfhosted.zip
unzip ruffle-selfhosted.zip -d /var/www/html/ruffle
# 2. 網頁引入
# 3. 或使用瀏覽器擴展 (開發/測試)
# Chrome/Edge: Ruffle Extension
# Firefox: Ruffle Extension
# 移除舊套件
sudo apt purge flashplugin-installer adobe-flashplugin pepperflashplugin-nonfree -y
sudo apt autoremove -y
# 刪除瀏覽器插件目錄殘留
rm -rf /usr/lib/flashplugin-installer
rm -rf /usr/lib/mozilla/plugins/libflashplayer.so
rm -rf ~/.mozilla/plugins/libflashplayer.so
# 檢查是否殘留
dpkg -l | grep -i flash
結論:Flash 時代已終結。現代 Web 標準 (HTML5/WebGL/WASM/WebCodecs) 提供更安全、高效、跨平台的多媒體能力。存量系統請儘快遷移至 Ruffle 或原生技術棧。