Ubuntu 16.04 上的 Flash 插件错误

Ubuntu 16.04 上的 Flash 插件错误

几天前我将我的 Ubuntu 更新到 16.04,现在 Flash Player 无法在 Chrome 浏览器上运行。

sudo apt-get install adobe-flashplugin

结果

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  adobe-flash-properties-gtk
Suggested packages:
  x-ttcidfont-conf msttcorefonts ttf-xfree86-nonfree xfs
The following NEW packages will be installed:
  adobe-flash-properties-gtk adobe-flashplugin
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/10.4 MB of archives.
After this operation, 38.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 1425767 files and directories currently installed.)
Preparing to unpack .../adobe-flashplugin_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb ...
Unpacking adobe-flashplugin (1:20160712.1-0ubuntu0.16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/adobe-flashplugin_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/icons/hicolor/24x24/apps/flash-player-properties.png', which is also in package flash-plugin 11.2.202.346-1
Preparing to unpack .../adobe-flash-properties-gtk_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb ...
Unpacking adobe-flash-properties-gtk (1:20160712.1-0ubuntu0.16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/adobe-flash-properties-gtk_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/flash-player-properties', which is also in package flash-plugin 11.2.202.346-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/adobe-flashplugin_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb
 /var/cache/apt/archives/adobe-flash-properties-gtk_1%3a20160712.1-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

更新

我不知道发生了什么,但升级到 16.04 后,我无法使用 chrome 浏览器播放视频内容。更新前一切都运行正常。我看到“无法加载插件”错误。

答案1

您使用的是 Chromium 吗?由于 Google Chrome 默认包含 Flash Player,因此 Chromium 不包含。如果您不想使用太多命令和终端,我建议您从 Google 的官方下载页面下载 Google Chrome,然后双击它以使用软件中心打开它。或者您可以使用 dpkg 命令来安装软件包。

答案2

这意味着 Flash 已通过其他来源安装。无需再次尝试安装该软件。

在 Ubuntu 16.04 中,Flash 将通过更新自动安装。无需单独安装。

为了摆脱冲突

启动 Google Chrome,然后在地址栏中输入 chrome://plugins。

单击“详细信息”并移至“Flash”部分。

通过取消选中该框来禁用 libpepflashplayer.so

重新启动浏览器,看看是否可以通过访问网页来查看富媒体内容。

https://helpx.adobe.com/flash-player/kb/enable-flash-player-google-chrome.html

答案3

Chrome 浏览器根本不使用您尝试安装的 Flash 插件,因此您不妨将其完全卸载。Chrome 浏览器使用 Pepper Flash,它嵌入在浏览器中。它会在浏览器安装期间安装。如果它不起作用,您必须检查 Chrome 安装出了什么问题。

您可以将 Chrome 安装重置为默认设置,例如通过使用终端窗口删除这两个目录:

rm -R ~/.config/google-chrome
rm -R ~/.cache/google-chrome

如果这不起作用,您可能需要重新安装 Chrome。

相关内容