在 Ubuntu 16.04 中播放 Chromium 中的视频

在 Ubuntu 16.04 中播放 Chromium 中的视频

我无法在 Ubuntu 16.04 的 Chromium 网络浏览器中播放 Dailymotion 上的任何视频。警告显示Whoops! Looks like we can't play this video in this browser。此外,Facebook 和 Twitter 上的视频也无法播放——提示“无法加载插件”/“无法播放媒体”。我尝试了网络上的许多解决方案,但都不起作用。

运行结果sudo apt-get updatesudo apt-get install adobe-flashplugin

:~$ sudo apt-get update  
Err:11 ppa.launchpad.net/skunk/pepper-flash/ubuntu xenial/main i386 Packages 404 Not Found 
E: Failed to fetch ppa.launchpad.net/skunk/pepper-flash/ubuntu/dists/xenial/mai‌​n/… 404 Not Found 
E: Some index files failed to download. They have been ignored, or old ones used instead. 

:~$ sudo apt-get install adobe-flashplugin 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
adobe-flashplugin is already the newest version (1:20170411.1-0ubuntu0.16.10.1). 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. 
After this operation, 0 B of additional disk space will be used. 
Do you want to continue? [Y/n] y 
Setting up runit (2.1.2-3ubuntu1) ... 
start: Unable to connect to Upstart: 
Failed to connect to socket /com/ubuntu/upstart: Connection refused  
dpkg: error processing package runit (--configure):   
 subprocess installed post-installation script returned error exit status 1 
Errors were encountered while processing: runit 
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

添加pepper-flashppa 不应该确保 flash 在 Chromium (CMIIW) 上运行,而且 ppa 已经过时,没有 16.04 (Xenial) 的发布文件。因此 ppa 无法使用。

只需安装adobe-flashplugin包即可完成工作:

  1. 启用规范合作伙伴,逐个运行以下命令:

    sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
    sudo apt update
    
  2. 然后安装adobe-flashplugin

    sudo apt install adobe-flashplugin
    

此外,对于该runit问题,它很可能是一个错误,并且已报告给启动板。https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164

相关内容