How to install libdvdcss.so.2 (Library)?

I want to make a copy of a DVD with Brasero. But it asks for libdvdcss.so.2

first i tried this: “sudo apt install libdvdread4”
but it says: “libdvdread4 is already the newest version (6.0.1-1).”

Then i tried this but doesn’t work: https://www.videolan.org/developers/libdvdcss.html
but the second step: “sudo dpkg-reconfigure libdvd-pkg”
its says: “dpkg-query: package ‘libdvd-pkg’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files”

i have no clue what i am doing, i am a newby with this linux stuff.

I would suggest going to:

https://www.videolan.org/developers/libdvdcss.html

and running the FIRST TWO sudo commands listed. You’ll notice that the file you are installing is not libdvdread4, but in fact a different file name. You can’t configure libdvd-pkg if you don’t do the first part.
Don’t worry about the git checkout angle, that’s for installing from source code.

If this doesn’t work out for you, do some searching on line on installing libdvdcss. Tell the search engine that you’re running Debian, since PureOS is a Debian fork.

Wrestling with Linux to get stuff installed is usually a little bit annoying, but seldom fatal.

i have tried that:

-> sudo apt install libdvd-pkg
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libdvd-pkg

-> sudo dpkg-reconfigure libdvd-pkg
dpkg-query: package ‘libdvd-pkg’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
/usr/sbin/dpkg-reconfigure: libdvd-pkg is not installed

Also this don’t work. https://libre-software.net/dvd-support-on-ubuntu-linux-mint/

The libdvd-pkg is not in the normally-enabled (main) Debian repositories. You’ll need to add the contrib repository to your package manager sources. One way that you can do this is by running echo "deb https://deb.debian.org/debian $(lsb_release -rs) contrib" | sudo tee -a /etc/apt/sources.list > /dev/null, which will add the contrib repository to your apt sources. Then run sudo apt update then you should be able to install libdvd-pkg.

Note that the above command might not work on PureOS, I’m not sure how they set up the release names.

Need to be careful about mixing Debian sources in with PureOS ones, too.

The other thing you could do is pull down the tarball at: https://download.videolan.org/pub/libdvdcss/ . You’ll want the 1.4.2 version I believe. Then unzip it, and use dpkg to install it instead of apt.

1 Like

Here is what you should do if you want to avoid adding Debian contrib as a repo in your /etc/apt/sources.list file:

sudo apt install build-essential debconf-2.0 debhelper dh-autoreconf wget libcap2-bin
wget http://ftp.us.debian.org/debian/pool/contrib/libd/libdvd-pkg/libdvd-pkg_1.4.2-1-1_all.deb
sudo dpkg -i libdvd-pkg_1.4.2-1-1_all.deb

For more info, see: https://packages.debian.org/buster/libdvd-pkg

oeps nevermind

this does not work.

debconf-2.0 is a virtual package now. Used is debconf only instead. See output of:
apt info libdvd-pkg
apt info libdvdcss2

As first please try (as within your post recommended):
sudo dpkg-reconfigure libdvd-pkg
sudo apt reinstall libdvd-pkg −− if needed.

As explained (if and after accepted):

1 Like