首先在终端输入
sudo gedit /etc/apt/sources.list
添加以下斜体字的源(目前CN99好像不提供w32codecs的下载了)
deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
然后依次输入以下命令
sudo apt-get update
sudo apt-get remove totem-gstreamer
sudo apt-get install totem-xine libxine1-ffmpeg libxine1-gnome libxine1-plugins libxine1 libstdc++5
sudo apt-get install w32codecs
如果找不到w32codecs,请到下面网址
http://download.youkuaiyun.com/sort/tag/w32codecs
如果下载的是个tar包,请解压到以下目录
/usr/local/lib/codecs/
转自http://hi.baidu.com/csx163/blog/item/248d552cf0ddd0ef8a139901.html