Debian

如何在 Debian Stretch 上安裝 Flash?

  • May 4, 2020

我正在使用 Debian Stretch 並想安裝flashplugin-nonfree. 我的apt/sources.list文件包含

deb http://ftp.ca.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free

deb http://download.virtualbox.org/virtualbox/debian stretch contrib
deb http://www.deb-multimedia.org stretch main non-free
deb [arch=i386,amd64] http://mariadb.mirror.globo.tech/repo/10.2/debian stretch main

但是當我執行時sudo apt-get install flashplugin-nonfree,我收到以下錯誤消息:

sudo apt-get install flashplugin-nonfree
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package flashplugin-nonfree is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'flashplugin-nonfree' has no installation candidate

我試圖進行更新或評論除第一行之外的所有內容,apt/sources.list但仍然有相同的錯誤消息。

關於如何安裝它的任何想法?

flashplugin-nonfree軟體包不再維護,如果您需要 Flash 外掛,您應該手動安裝它

  1. 從Adob ​​e 下載最新版本的外掛tar.gz格式。
  2. 以 root 身份提取下載的存檔並複製libflashplayer.so/usr/lib/flashplugin-nonfree.
  3. 修復文件的所有權和權限:
chmod 644 /usr/lib/flashplugin-nonfree/libflashplayer.so
chown root:root /usr/lib/flashplugin-nonfree/libflashplayer.so
  1. 如有必要,請安裝替代方案,以便 Firefox 找到外掛。如果
update-alternatives --list flash-mozilla.so

返回/usr/lib/flashplugin-nonfree/libflashplayer.so,它已正確設置(如果您過去曾使用該外掛,則會出現這種情況),但如果沒有,則需要執行

update-alternatives --quiet --install /usr/lib/mozilla/plugins/flash-mozilla.so flash-mozilla.so /usr/lib/flashplugin-nonfree/libflashplayer.so 50

對於未來的升級,您只需要重複前三個步驟。

或者,pepperflashplugin-nonfree仍然可以工作並將為 Chromium 安裝 Flash 外掛。您需要手動下載包並使用 安裝它dpkg -i,但它會下載外掛並為您設置所有內容。您可以通過執行使外掛保持最新update-pepperflashplugin-nonfree --install(並使用 檢查其狀態--status)。

引用自:https://unix.stackexchange.com/questions/391467