Debian Linux 6: Install libdvdcss2 For DVD Decryption Playback

How do I install libdvdcss2 which is part of the VideoLAN project to play DVDs under Debian Linux 6 (squeeze) operating system?

libdvdcss or libdvdcss2 is a free and open source software library for accessing and unscrambling DVDs encrypted with the Content Scramble System (CSS).

Tutorial details
Difficulty Easy
Root privileges Yes
Requirements None

It is part of the VideoLAN project and is used by VLC media player and other DVD player software such as Ogle, xine-based players, MPlayer, and so on under Linux an Unix like operating systems.

Turn on deb-multimedia repo

The sources.list file contains package resource list for apt. Edit /etc/apt/sources.list file, enter:
# vi /etc/apt/sources.list
Append the following directives:

deb squeeze main non-free

Save and close the file. Rsynchronize the package index files from their sources, run:
# apt-get update

Install libdvdcss2

Type the following command:
# apt-get install libdvdcss2
Sample outputs:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 37.1 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 squeeze/main libdvdcss2 amd64 1.2.10-0.3 [37.1 kB]
Fetched 37.1 kB in 1s (22.8 kB/s)   
Selecting previously deselected package libdvdcss2.
(Reading database ... 267066 files and directories currently installed.)
Unpacking libdvdcss2 (from .../libdvdcss2_1.2.10-0.3_amd64.deb) ...
Setting up libdvdcss2 (1.2.10-0.3) ...

Now you can play DVDs with VLC or any other media player under Debian Linux 6.x. In this example, use lsdvd to list all titles / chapter from /dev/dvd:
$ lsdvd
To play track # 3 from DVD, enter:
$ mplayer dvd://3 -dvd-device /dev/dvd

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 4 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
4 comments… add one
  • Monsegu Jan 9, 2013 @ 16:27

    You SAVED me. SOLVED
    Very precise how to do it.

  • ross Mar 17, 2013 @ 6:22

    Im new and am a dumb ass to Ubuntu. How do I exactly type in the codes to install libdvdcss2. I get NOTHING?
    Q. WHAT is the first COMPLETE line code to FIRST type in?
    then 2ed. The next line, etc etc.
    Thanks for reply

  • Robert Thomas Apr 10, 2016 @ 21:33

    Thanks i can play my dvds now. I had went to and tried the hard way, managed to get the src code in a folder on my computer but then how to configure make and install? I guess that was meant for developers, i tried for a day have a lot to learn. Though to add deb squeeze main non-free to my source list i navigated to etc/apt/sources.list double clicked enter root password hit the other software tab then add then entered the above url then add source and closed the window and went back to the terminal and did the install.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum