Ubuntu安装FlashPlayer的一些启示

本文提供了一种解决在Ubuntu9.10x86_64上安装Adobe Flash Player 10的方法,包括清理旧插件、安装必要的库文件以及配置Flash插件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

安装 Adobe FLash Player 10 于 Ubuntu 9.10 x86_64

 

之前就知道 Flash Player 安装在 64bit Linux 上面不是很好解决,包括我在内,我想应该很多人都会被这个问题搞得半死。明明看起来好像装好了,但是在 Firefox 就是怎样都不能看见 Flash 影片。网路上有不少 deb 档下载下来,不是冲突就是不能安装。因此这边纪录一下解决方法。

首先把所有 Flash 相关的 Plugin 都移除掉:

sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper

为了保险起见,请再度确认以下四个目录下面的 Flash Plugin 都被清空了 (如果还有 Flash 相关档案,请手动删除)。

/usr/lib/mozilla/plugins/

~/.mozilla/plugins/

/usr/lib/firefox/plugins/

/usr/lib/nspluginwrapper

安装ia32-libs 和 nspluginwrapper

sudo apt-get install ia32-libs nspluginwrapper

到 Adobe Labs Downloads 下载最新的 tar.gz 档案,解压缩之后,把 libflashplayer.so 复制到 /usr/lib/mozilla/plugins/

接着用 nspluginwrapper 安装 Flash Player 并且建立 symbol link

sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so

sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/

sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/

接着重新启动 Firefox 就可以生效了。

 

=================================================

 

 This script was for installing 32-bit Flash 10 on 64-bit Ubuntu. Now that Adobe has released a 64-bit Flash, you should NOT be trying to install 32-bit Flash on 64-bit Ubuntu any longer.

Here is a blog entry about installing the new native 64-bit Flash.


Important Note: Although this script worked fine for me and many others, there is a list of concerns with it posted on the Ubuntu Forums. You might want to check that out to be informed before proceeding.

I’ll spare you the errors I ran into, but if you see things like:
*** NSPlugin Viewer *** ERROR: libcurl.so.3: cannot open shared object file: No such file or directory

…don’t be discouraged.

First off, these are the two references that I used to get things working:
My Science Is Better: Install Adobe Flash Player 10 on Ubuntu 64bit

Don’t run that script or anything yet, because you also need to read a bit from this Ubuntu Forums thread to get all the libs that are needed under amd64!

(If you do run the script you will get the NSPlugin Viewer errors for the missing libs. You can just install them with getlibs and continue on.)

Step One: Get getlibs
This is a package that will grab libs, 32 and 64-bit under amd64 (and 32-bit only under i386.)

Step Two: Run the script
This is a very slightly modified script which combines what you need to do from both of the above posts. It is 99% what “My Science is Better” already had – I only added the bit about grabbing the libs and updating the flash player file name.

 

After this, you should see “Shockwave Flash” as a plugin if you type in “about:plugins” in the browser bar.

YouTube is working fine now!

 

======================================================

 

昨天准备把 ubuntu 从 8.04 升级到 9.10, 老是遇到flashplugin-nonfree package broken, need resintall it before remove it.
我是删也删不掉,装也装不起,啥子方法都试过了,无奈apt-get 没有reinstall这个命令,直接install又不行
整了大半天也没搞懂,在即将放弃准备直接使用9.10的镜像时,今天早上来了准备最后一搏
终于,在网上找到一个高人的解决办法,以下与大家分享

1. Backup your /var/lib/dpkg/status file NB You MUST do this first, because if you lose this file, your system is hosed.
In a terminal, run: sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.backup

2. In a terminal, type in the following command: sudo gedit /var/lib/dpkg/status

3. Search for "flashplugin-nonfree" in the opened file.
Package: flashplugin-nonfree

4. Delete this block.

5. Save the file

5.sudo apt-get install flashplugin-nonfree

然后一切正常,心情愉快~~~~~~~~~
原链接 https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/365392/comments/10

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值