ubuntu16.04为google chrome安装adobe-flashplugin

来源:互联网 发布:网络出版之我见 编辑:程序博客网 时间:2024/06/03 15:25

1. apt命令安装adobe-flashplugin

$ sudo apt-get install adobe-flashplugin

2. deb包安装adobe-flashplugin

adobe-flashplugin的deb包下载地址:
http://archive.canonical.com/pool/partner/a/adobe-flashplugin/
首先查看系统版本号:

$ uname -aLinux xxpc 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

可知当前ubuntu版本号为16.04.1, 选择adobe-flashplugin_20170509.1-0ubuntu0.16.04.1_amd64.deb进行下载

$ wget -c http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb

安装deb包:

$ sudo dpkg -i adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb

若出现以下冲突信息:

$ sudo dpkg -i adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.debSelecting previously unselected package adobe-flashplugin.dpkg: regarding adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb containing adobe-flashplugin: adobe-flashplugin conflicts with flashplugin-installer  flashplugin-installer (version 25.0.0.171ubuntu0.16.04.1) is present and installed.dpkg: error processing archive adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb (--install): conflicting packages - not installing adobe-flashpluginErrors were encountered while processing: adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb

则将flashplugin-installer卸载, 再执行安装adobe-flashplugin命令:

$ sudo apt-get remove flashplugin-installer$ sudo dpkg -i adobe-flashplugin_20170509.1-0ubuntu0.16.10.1_amd64.deb

然后重新打开终端, 输入命令:

$ google-chrome

重启google chrome浏览器即可生效.