libdvdcss2 and w32codecs for Ubuntu

转载 2007年09月21日 13:39:00

libdvdcss2 and w32codecs for Ubuntu

Posted by Carthik in ubuntu.

You need codecs (decoders) and software to read the contents of DVDs to be able to see multimedia files of different formats, as well as DVDs. These software are provided free for use in Ubuntu - however due to restrictions on distributing these modules in countries like the USA, they are not always easy to find. This post will tell you how to find them to install them on your Ubuntu computer. The libdvdcss2 package helps you play dvds. The w32codecs package is used to play some media file formats in mplayer, xine etc.

Update: The following instructions have been updated & work perfectly fine! Some of the old repositories that do not work anymore have been moved to the very end of this post for archival purposes. Last Updated: April 08, 2007

Installation instructions for libdvdcss2 and w32codecs in Ubuntu

To add libdvdcss2 and win32codecs to your Ubuntu installation, you have to add the Medibuntu package repository to your /etc/apt/sources.list file.

To do this, you have to:
1. Edit the file /etc/apt/sources.list using either of the following commands in a terminal:
$gksudo gedit /etc/apt/sources.list to open it in the GUI text editor
$sudo vim /etc/apt/sources.list to open it in the Vim command line text editor

2. Add the following lines to add the Medibuntu repository to the file:

## Medibuntu - Ubuntu 6.10 “edgy eft”
## Please report any bug on
deb edgy free non-free
deb-src edgy free non-free

If you are running Feisty or some other release, other than edgy, replace the word “edgy” in both lines above with the name of the release you are using.

3. Import the gpg key for the Medibuntu repository to ensure that the packages are installed without warnings/errors regarding trust:
To do this, run the following command from the terminal:
wget -q -O- | sudo apt-key add -

4. Now update the local list of packages to get the list of packages from the newly added Medibuntu repository:
In a terminal execute the following command:
sudo apt-get update

5. Now you can install libdvdcss2 and w32codecs using the following command:
sudo apt-get install libdvdcss2 w32codecs

Note: There are installation instructions on the Medibuntu page for Dapper and newer that are different - only because the instructions help you create a new sources.list file without mucking around in the old sources.list file. Feel free to follow them instead. I posted the old-style instructions that modifies the existing sources.list file to ensure that the instructions work for everyone - those using Warty(the first release ever) through those using the latest release of Ubuntu.

There are a lot of wonderful packages provided by Medibuntu. Feel free to install any other you like, or might want.

Just in case…

In case the medibuntu repositories go down, you can add and use Seveas’ repositories. You will then have to add similar line to the /etc/apt/sources.list file, with the Seveas repository url etc. Seveas’ repository has a few mirrors as listed below:

  • (Sponsored by Brett Johnson)
  • (Sponsored by Brandon Holtsclaw)
  • (Sponsored by Niels Roosen)
  • (Sponsored by Henri Cook (
  • (Sponsored by Peter Lieverdink)

As a quick guide to using Seveas’ repository instead of the Medibuntu repository, you should change the lines added to the sources.list file to read like:
deb edgy-seveas all
deb-src edgy-seveas all

and the gpg-key add command will now be:
wget -O- | sudo apt-key add -

The other commands/steps can be modified as neccessary - it is not too difficult to figure it out, and the exercise is left to the reader for now :)

Old instructions

Note: These don’t work anymore - they are here more for archival purposes than anything else.

Update: you can add the PLF repository to your sources.list to get the required multimedia codecs and binaries through apt-get (Synaptic).

The line to add to your /etc/apt/sources.list file would be:
deb breezy free non-free

After you have done this, do
$sudo apt-get update

Now you can install the following using the PLF repository:
* w32codecs: A package of codecs needed to play multiple formats, notably DivX. (disponible. Maintainer: MirSPCM)
* RealPlayer: Stream player (disponible. Maintainer: keyes)
* libdvdcss2: The library needed to play back encrypted DVDs.(Disponible. Maintainer: MirSPCM)
* Xdtv: - Tv viewer and recorder, the dependancies, and plugins like plug-m (Maintainer: Stéph)
* Free-Go and FreePlayer: logiciels pour freenautes exclusivement (and Linux compatible FreePlayer mods: Homeplayer, FreeMode)
* autopano-sift: - Panorama Image compositor (Disponible dans Marillat, Maintainer: Stéph))
* hugin: - you can assemble a mosiac of photographs into a complete immersive panorama, stitch any series of overlapping pictures and much more.
* Divx4Linux: - Read and create DivX (Période de test. Maintainer: Stéph)
* Varsha: - make DVD slideshows, videos, and interactive menus.
* dir2ogg: - Converts mp3, m4a, and wav files into ogg-vorbis format
* dvdstyler: - DVD Authoring System
* kmplayer: - a working player for KDE
* kplayer: - a working player for KDE
* K9Copy: - a small utility which allows the copying of DVDs on Linux.
* XDVDShrink: - allows you to create fair-use archival copies of DVD content on single-layer writable DVDs.
* Sharpmusique: - iTunes music store frontend, already packaged by the author, for Ubuntu Breezy here:

For the future, if the repositories above are not available, let me remind myself that I can find libdvdcss2 and w32codecs specially built for Ubuntu at the following locations:
libdvdcss2 :
w32codecs :

These two are required for playing dvds and for playing various kinds of media files, such as .avi .wmv etc in Ubuntu, and these packages are hard to find for Ubuntu. The Debian .debs usually work just fine, but it is good to have the Ubuntu .debs for these.

Disclaimer: In certain countries it may be illegal to use these libraries, since they may circumvent copyright laws, and the infamous DRM laws. Also, by linking to these software, I do not seek to encourage their use. Use at your own discretion. For the record, the site I linked to is not mine, and I have no clue who administers it.

Sad world this, where one has to risk violating the law to watch movies on DVDs that one has bought with one’s own money!


ubuntu现在没有可用的软件包 w32codecs解决方法

sudo gedit /etc/apt/sources.list   加上deb
  • Tuzki
  • Tuzki
  • 2007年10月19日 16:49
  • 2188

Ubuntu下安装 W32codecs / W64codecs多媒体解码器

Ubuntu下安装 W32codecs / W64codecs多媒体解码器 Totem-xine 和 Mpla...
  • coolper
  • coolper
  • 2013年09月26日 09:04
  • 1495


 ubuntu下安装totem-xine和安装w32codecs作者: LiYan  发布日期: 2006-11-24    查看数: 3230   出自: http://www.linuxdiyf....
  • zubin006
  • zubin006
  • 2007年09月21日 15:28
  • 6162

ubuntu 安装w32codecs解码器
  • dking94
  • dking94
  • 2010年05月10日 08:50
  • 764

Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 8.04 (Hardy Heron)

MPlayer is a movie and animation player that supports a wide range of codecs and file formats, inclu...
  • emlinux
  • emlinux
  • 2008年05月03日 13:18
  • 2096


官方源中已取消其下载;原来的sudo apt-get install w32codecs 失效; 其下载地址如下:
  • dadoneo
  • dadoneo
  • 2010年11月09日 21:24
  • 1454

ubuntu下用源安装mplayer及w32codecs解码器 FROM:http://emcome.jav...
  • caixiexin
  • caixiexin
  • 2011年12月03日 13:17
  • 1173

ubuntu6.10安装多媒体软件 beep-media-player totem-xine w32codecs libxine-extracodecs

ubuntu6.10安装多媒体软件 # 仅适合x86,for ppc见另外文件 # 如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车 # ubuntu中 # su...
  • evane1890
  • evane1890
  • 2007年04月26日 15:33
  • 902


本文转载自 本文所用rpm文件均来自http://rpm.pbone.net搜索得到. 1:安装epel源: sudo rp...
  • kingsing456789
  • kingsing456789
  • 2015年08月05日 19:24
  • 690

Ubuntu For Ubuntu

近日,据国外媒体报道,Ubuntu已经渗入(或固化到)Motorola智能手机(Droid4)的“体内”,使其变为一款新型“miniComputer“。请见新闻报道,题为“Ubuntu  unoffi...
  • hitabc141592
  • hitabc141592
  • 2012年04月29日 15:23
  • 559
您举报文章:libdvdcss2 and w32codecs for Ubuntu