安装多媒体解码器
安装下面这些解码器,常见的多媒体格式基本都可以播放了仅适合x86,ppc的请参见另外文件。
推荐能连接国外网的用户加入Medibuntu源,输入命令
sudo wget
http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
wget -q
http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
其他用户要确保已加入ubuntu-cn源
因为法律的原因,Ubuntu的软件仓库默认不加入私有软件,但是在这些软件当中有很多是我们所必需的。Medibuntu repository源里就有很多非自由软件,加上这个源我们可以解决很多多问题。这个源里包括的软件包有Acrobat Reader、GoogleEarth、Opera 浏览器、w32codecs、Real Player、Skype等。你可以在这里查看或下载到全部软件包。 下面几个软件包是我们设置Ubuntu多媒体应用环境安装解码器所必须的,现在给大家简单介绍一下:
* libdvdcss2软件包就可以获得额外的在DVD支持,关于libdvdcss2的信息你可以在这里查看。
* libxine1-ffmpeg和libxine1-plugins软件包Totem-xine电影播放器重要後台支持。
* w32codecs、gcc-3.3-base和libstdc++5软件包:w32codecs是xine引擎里重要的解码器包。w32codecs依赖gcc-3.3-base和libstdc++5软件包工作。
解码器的安装步骤很简单,第一步安装libdvdcss2,命令如下:
我最后通过这个方法解决了问题
sudo apt-get install libdvdcss2
第二步,为以xine为後台引擎的totem电影播放器添加多媒体格式支持安装 libxine1-ffmpeg和libxine1-plugins :
sudo apt-get install libxine1-ffmpeg libxine1-doc libxine1-plugins
命令执行後将会自动安装 libmodplug0c2 libmpcdec3 libpulse0 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxcb1 libxine1 libxvmc1 libxine1-console libxine1-gnome等软件包。
第三步,安装w32codecs软件包为以xine为後台引擎的totem电影播放器添加更多的多媒体格式支持其中包括Real Media、MPEG等:
sudo apt-get install w32codecs gcc-3.3-base libstdc++5
[sudo] password for jack:
忽略 cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/main Translation-zh_CN
忽略 cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/restricted Translation-zh_CN
获取:1
http://cn.archive.ubuntu.com gutsy Release.gpg [191B]
获取:2
http://cn.archive.ubuntu.com gutsy/main Translation-zh_CN [25.6kB]
忽略
http://cn.archive.ubuntu.com gutsy/restricted Translation-zh_CN
获取:3
http://cn.archive.ubuntu.com gutsy/universe Translation-zh_CN [24.3kB]
获取:4
http://cn.archive.ubuntu.com gutsy-updates Release.gpg [191B]
忽略
http://cn.archive.ubuntu.com gutsy-updates/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com gutsy-updates/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com gutsy-updates/universe Translation-zh_CN
命中
http://cn.archive.ubuntu.com gutsy Release
命中
http://cn.archive.ubuntu.com gutsy-updates Release
命中
http://cn.archive.ubuntu.com gutsy/main Packages
命中
http://cn.archive.ubuntu.com gutsy/restricted Packages
命中
http://cn.archive.ubuntu.com gutsy/universe Packages
命中
http://cn.archive.ubuntu.com gutsy/main Sources
命中
http://cn.archive.ubuntu.com gutsy/restricted Sources
命中
http://cn.archive.ubuntu.com gutsy-updates/main Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/restricted Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/universe Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/main Sources
命中
http://cn.archive.ubuntu.com gutsy-updates/restricted Sources
下载 49.9kB,耗时 9s (5343B/s)
正在读取软件包列表... 完成
jack@jjj:~$ sudo apt-get remove totem-gstreamer
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
软件包 totem-gstreamer 还未安装,因而不会被卸载
已经不需要下列自动安装的软件包:
libchewing3-data gimp-help-zh-cn scim-chewing gimp-help-common libchewing3
openoffice.org-l10n-zh-cn openoffice.org-l10n-zh-tw
openoffice.org-help-zh-cn openoffice.org-help-zh-tw
使用 'apt-get autoremove' 来删除它们。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 119 个软件未被升级。
jack@jjj:~$ sudo apt-get install totem-xine libxine1-ffmpeg libxine1-gnome libxine1-plugins libxine1 libstdc++5
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
totem-xine 已经是最新的版本了。
libxine1-ffmpeg 已经是最新的版本了。
libxine1 已经是最新的版本了。
已经不需要下列自动安装的软件包:
libchewing3-data gimp-help-zh-cn scim-chewing gimp-help-common libchewing3
openoffice.org-l10n-zh-cn openoffice.org-l10n-zh-tw
openoffice.org-help-zh-cn openoffice.org-help-zh-tw
使用 'apt-get autoremove' 来删除它们。
将会安装下列额外的软件包:
gcc-3.3-base libxine1-console
下列【新】软件包将被安装:
gcc-3.3-base libstdc++5 libxine1-console libxine1-gnome libxine1-plugins
共升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 119 个软件未被升级。
需要下载 629kB 的软件包。
解压缩后会消耗掉 1475kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1
http://cn.archive.ubuntu.com gutsy/main gcc-3.3-base 1:3.3.6-15ubuntu2 [151kB]
获取:2
http://cn.archive.ubuntu.com gutsy/main libstdc++5 1:3.3.6-15ubuntu2 [296kB]
获取:3
http://cn.archive.ubuntu.com gutsy/universe libxine1-gnome 1.1.7-1ubuntu1 [58.3kB]
获取:4
http://cn.archive.ubuntu.com gutsy/universe libxine1-console 1.1.7-1ubuntu1 [78.8kB]
获取:5
http://cn.archive.ubuntu.com gutsy/universe libxine1-plugins 1.1.7-1ubuntu1 [44.3kB]
下载 629kB,耗时 34s (18.4kB/s)
选中了曾被取消选择的软件包 gcc-3.3-base。
(正在读取数据库 ... 系统当前总共安装有 100937 个文件和目录。)
正在解压缩 gcc-3.3-base (从 .../gcc-3.3-base_1%3a3.3.6-15ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 libstdc++5。
正在解压缩 libstdc++5 (从 .../libstdc++5_1%3a3.3.6-15ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 libxine1-gnome。
正在解压缩 libxine1-gnome (从 .../libxine1-gnome_1.1.7-1ubuntu1_i386.deb) ...
选中了曾被取消选择的软件包 libxine1-console。
正在解压缩 libxine1-console (从 .../libxine1-console_1.1.7-1ubuntu1_i386.deb) ...
选中了曾被取消选择的软件包 libxine1-plugins。
正在解压缩 libxine1-plugins (从 .../libxine1-plugins_1.1.7-1ubuntu1_all.deb) ...
正在设置 gcc-3.3-base (1:3.3.6-15ubuntu2) ...
正在设置 libstdc++5 (1:3.3.6-15ubuntu2) ...
正在设置 libxine1-gnome (1.1.7-1ubuntu1) ...
正在设置 libxine1-console (1.1.7-1ubuntu1) ...
正在设置 libxine1-plugins (1.1.7-1ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
jack@jjj:~$ sudo apt-get install w32codecs
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
现在没有可用的软件包 w32codecs,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 w32codecs 还没有可供安装的候选者
jack@jjj:~$ sudo apt-get install libdvdcss2
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
现在没有可用的软件包 libdvdcss2,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 libdvdcss2 还没有可供安装的候选者
jack@jjj:~$ sudo wget
http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
--12:35:41--
http://www.medibuntu.org/sources.list.d/gutsy.list
=> `/etc/apt/sources.list.d/medibuntu.list'
正在解析主机
www.medibuntu.org... 87.98.242.10
正在连接 www.medibuntu.org|87.98.242.10|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 223 [text/plain]
100%[====================================>] 223 --.--K/s
12:35:44 (20.62 MB/s) - `/etc/apt/sources.list.d/medibuntu.list' 已经保存 [223/223]
jack@jjj:~$ wget -q
http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
OK
忽略 cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/main Translation-zh_CN
忽略 cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/restricted Translation-zh_CN
获取:1
http://packages.medibuntu.org gutsy Release.gpg [189B]
忽略
http://packages.medibuntu.org gutsy/free Translation-zh_CN
忽略
http://packages.medibuntu.org gutsy/non-free Translation-zh_CN
获取:2
http://packages.medibuntu.org gutsy Release [2718B]
忽略
http://packages.medibuntu.org gutsy/free Packages
忽略
http://packages.medibuntu.org gutsy/non-free Packages
获取:3
http://cn.archive.ubuntu.com gutsy Release.gpg [191B]
命中
http://cn.archive.ubuntu.com gutsy/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com gutsy/restricted Translation-zh_CN
命中
http://cn.archive.ubuntu.com gutsy/universe Translation-zh_CN
获取:4
http://cn.archive.ubuntu.com gutsy-updates Release.gpg [191B]
忽略
http://cn.archive.ubuntu.com gutsy-updates/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com gutsy-updates/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com gutsy-updates/universe Translation-zh_CN
命中
http://cn.archive.ubuntu.com gutsy Release
获取:5
http://packages.medibuntu.org gutsy/free Packages [5888B]
命中
http://cn.archive.ubuntu.com gutsy-updates Release
命中
http://cn.archive.ubuntu.com gutsy/main Packages
命中
http://cn.archive.ubuntu.com gutsy/restricted Packages
命中
http://cn.archive.ubuntu.com gutsy/universe Packages
命中
http://cn.archive.ubuntu.com gutsy/main Sources
命中
http://cn.archive.ubuntu.com gutsy/restricted Sources
命中
http://cn.archive.ubuntu.com gutsy-updates/main Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/restricted Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/universe Packages
命中
http://cn.archive.ubuntu.com gutsy-updates/main Sources
命中
http://cn.archive.ubuntu.com gutsy-updates/restricted Sources
获取:6
http://packages.medibuntu.org gutsy/non-free Packages [2988B]
下载 11.8kB,耗时 6s (1692B/s)
正在读取软件包列表... 完成
jack@jjj:~$
jack@jjj:~$ sudo apt-get install libdvdcss2
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
已经不需要下列自动安装的软件包:
libchewing3-data gimp-help-zh-cn scim-chewing gimp-help-common libchewing3
openoffice.org-l10n-zh-cn openoffice.org-l10n-zh-tw
openoffice.org-help-zh-cn openoffice.org-help-zh-tw
使用 'apt-get autoremove' 来删除它们。
建议安装的软件包:
regionset
下列【新】软件包将被安装:
libdvdcss2
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 124 个软件未被升级。
需要下载 36.3kB 的软件包。
解压缩后会消耗掉 106kB 的额外空间。
获取:1
http://packages.medibuntu.org gutsy/free libdvdcss2 1.2.9-2medibuntu4 [36.3kB]
下载 36.3kB,耗时 7s (4723B/s)
选中了曾被取消选择的软件包 libdvdcss2。
(正在读取数据库 ... 系统当前总共安装有 100970 个文件和目录。)
正在解压缩 libdvdcss2 (从 .../libdvdcss2_1.2.9-2medibuntu4_i386.deb) ...
正在设置 libdvdcss2 (1.2.9-2medibuntu4) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
jack@jjj:~$