如何在 Debian Stretch 上安装 Flash?

Eti*_*nne 5 debian apt adobe-flash

我正在使用 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
Run Code Online (Sandbox Code Playgroud)

但是当我运行时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
Run Code Online (Sandbox Code Playgroud)

我尝试更新或评论除第一行之外的所有内容,apt/sources.list但仍然有相同的错误消息。

知道如何安装它吗?

Ste*_*itt 10

flashplugin-nonfree软件包不再维护,如果您需要 Flash 插件,您应该手动安装它

  1. tar.gzAdobe下载最新版本的插件格式。

  2. 以 rootlibflashplayer.so身份解压缩下载的存档并复制到/usr/lib/flashplugin-nonfree.

  3. 修复文件的所有权和权限:

    chmod 644 /usr/lib/flashplugin-nonfree/libflashplayer.so
    chown root:root /usr/lib/flashplugin-nonfree/libflashplayer.so
    
    Run Code Online (Sandbox Code Playgroud)
  4. 如有必要,请安装替代品,以便 Firefox 找到该插件。如果

    update-alternatives --list flash-mozilla.so
    
    Run Code Online (Sandbox Code Playgroud)

    返回/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
    
    Run Code Online (Sandbox Code Playgroud)

对于以后的升级,您只需重复前三个步骤。

或者,pepperflashplugin-nonfree仍然有效,并将安装适用于 Chromium 的 Flash 插件。您需要手动下载软件包并使用 安装它dpkg -i,但它会下载插件并为您设置一切。您可以通过运行使插件保持最新update-pepperflashplugin-nonfree --install(并使用 来检查其状态--status)。

  • 或者,您可以将 Chromium 与“pepperflashplugin-nonfree”一起使用,我将更新我的答案以涵盖这一点。 (2认同)