File: //proc/self/root/usr/share/help/zh_CN/gnome-help/net-install-flash.page
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" xmlns:ui="http://projectmallard.org/ui/1.0/" type="topic" style="task" id="net-install-flash" xml:lang="zh-CN">
<info>
<link type="guide" xref="net-browser"/>
<revision pkgversion="3.4.0" date="2012-02-20" status="final"/>
<revision version="18.04" date="2018-01-23" status="review"/>
<credit type="author">
<name>Phil Bull</name>
<email>philbull@gmail.com</email>
</credit>
<credit type="editor">
<name>Ubuntu 文档团队</name>
</credit>
<desc>您可能需要安装 Flash 才能正确观看某些视频和阅读某些交互页面。</desc>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
</info>
<title>安装 Flash 插件</title>
<p>Flash 是一个用于浏览器的<em>插件</em>,能让您看视频、页面交互等,HTML5 更加现代解决方案,有更多的支持,但是仍然有一些网站离不开 Flash。</p>
<p>如果未安装 Flash,在访问需要该程序的网站时,您可能会看到一则告诉您安装 Flash 的消息。Flash 可免费下载(但非开源软件)并适用于大多数 Web 浏览器。</p>
<note style="warning">
<p>Adobe 已宣布他们将在 2020 年底停止更新和发布 Flash Player。因此,出于安全原因,Flash 插件不应在 2020 年后使用。</p>
</note>
<p>有两种可用的插件:</p>
<list>
<item>
<p><em>NPAPI</em> 用于 <app>Firefox</app> 和其他基于 Gecko 内核的网页浏览器</p>
</item>
<item>
<p><em>PPAPI</em>用于 <app>Chromium</app> 和其他基于 Blink 的网页浏览器,包括 <app>Opera</app> 和 <app>Vivaldi</app></p>
</item>
</list>
<note>
<p>The <app>Google Chrome</app> 浏览器包含了 Flash 插件,不用再单独安装。</p>
</note>
<section id="flashplugin-installer">
<title>flashplugin-installer</title>
<p><app>flashplugin-installer</app> 软件包提供了用于 Firefox 的 NPAPI 插件。<link href="apt:flashplugin-installer">安装此软件包</link>,然后重启浏览器。</p>
</section>
<section id="adobe-flashplugin">
<title>adobe-flashplugin</title>
<p><app>adobe-flashplugin</app> 软件包提供 NPAPI 和 PPAPI 插件,例如,它提供包括 Firefox 和 Chromium 系列的浏览器插件。</p>
<steps>
<item>
<p>确保 <link xref="addremove-sources#canonical-partner">Canonical 第三方源是激活的</link>.</p>
</item>
<item>
<p>安装 <link href="apt:adobe-flashplugin">adobe-flashplugin</link> 软件包。</p>
</item>
<item>
<p>重启您的浏览器。</p>
</item>
</steps>
</section>
<section id="browser-plugin-freshplayer-pepperflash">
<title>browser-plugin-freshplayer-pepperflash</title>
<p>PPAPI 插件的一些特性,比如 3D 加速和视频 DRM,在 NPAPI 插件里是不可用的,如果您使用 Firefox 或其他 Gecko 内核的浏览器,并且需要这些特性,您可以安装 <app>browser-plugin-freshplayer-pepperflash</app> 软件包,它可以作为桥梁让 Firefox 使用 PPAPI 插件。</p>
<steps>
<item>
<p>请确保 <app>adobe-flashplugin</app> 应用已安装。</p>
</item>
<item>
<p>按组合键 <keyseq><key>Ctrl</key><key>Alt</key><key>T</key></keyseq> 打开一个终端窗口,然后安装 <app>browser-plugin-freshplayer-pepperflash</app> 软件包:</p>
<p><cmd its:translate="no">sudo apt install browser-plugin-freshplayer-pepperflash</cmd></p>
</item>
<item>
<p>重启您的浏览器。</p>
</item>
</steps>
</section>
<section id="snap">
<title>提供 snap 网页浏览器软件包</title>
<p>如果您使用 <app>Firefox</app> 或 <app>Chromium</app> snap 软件包,上面的介绍没有用处,请安装下面的建议激活 Flash。</p>
<p>请注意,假设您总是安装最新版的 Flash 插件,这意味着您需要重复一次 2 - 7 步骤,以便访问需要 Flash 的网页服务。</p>
<steps ui:expanded="false">
<title>Firefox snap 安装包</title>
<item>
<p its:locNote="Translators: Don't translate 'plugins' - it's the name of a folder on the file system.">新建 <sys>plugins</sys> 文件夹:</p>
<p><cmd its:translate="no">mkdir ~/snap/firefox/common/.mozilla/plugins</cmd></p>
</item>
<item>
<p>访问 <link href="https://get.adobe.com/flashplayer/">https://get.adobe.com/flashplayer/</link>.</p>
</item>
<item>
<p>下载 <sys>.tar.gz</sys> 文件,用于 Linux.</p>
</item>
<item>
<p>打开下载文件所在的文件夹。</p>
</item>
<item>
<p>解压下载的文件:</p>
<p><cmd its:translate="no">tar xf flash_player*</cmd></p>
</item>
<item>
<p>复制 <sys>libflashplayer.so</sys> 到 <sys>plugins</sys> 文件夹:</p>
<p><cmd its:translate="no">cp libflashplayer.so ~/snap/firefox/common/.mozilla/plugins</cmd></p>
</item>
<item>
<p>重启您的浏览器。</p>
</item>
</steps>
<steps ui:expanded="false">
<title>Chromium snap 安装包</title>
<item>
<p its:locNote="Translators: Don't translate 'lib' - it's the name of a folder on the file system.">新建 <sys>lib</sys> 文件夹:</p>
<p><cmd its:translate="no">mkdir ~/snap/chromium/current/.local/lib</cmd></p>
</item>
<item>
<p>访问 <link href="https://get.adobe.com/flashplayer/">https://get.adobe.com/flashplayer/</link>.</p>
</item>
<item>
<p>下载 <sys>.tar.gz</sys> 文件,用于 Linux.</p>
</item>
<item>
<p>打开下载文件所在的文件夹。</p>
</item>
<item>
<p>解压下载的文件:</p>
<p><cmd its:translate="no">tar xf flash_player*</cmd></p>
</item>
<item>
<p>复制 <sys>libpepflashplayer.so</sys> 到 <sys>lib</sys> 文件夹:</p>
<p><cmd its:translate="no">cp libpepflashplayer.so ~/snap/chromium/current/.local/lib</cmd></p>
</item>
<item>
<p>重启您的浏览器。</p>
</item>
</steps>
</section>
</page>