Enabling DVD Playback

16 replies [Last post]
oralfloss
Offline
Joined: 06/20/2013

I tried enabling DVD playback via the instructions given here:
http://trisquel.info/en/wiki/enable-dvd-playback

I got some errors and I have no idea what is causing them or how to fix them. Any ideas?

[code]
trisquel@thinkpad:~$ sudo /usr/share/doc/libdvdread4/install-css.sh
[sudo] password for trisquel:
--2015-12-05 02:38:10-- http://packages.medibuntu.org/dists/toutatis/free/binary-amd64/Packages
Resolving packages.medibuntu.org (packages.medibuntu.org)... 141.8.224.175
Connecting to packages.medibuntu.org (packages.medibuntu.org)|141.8.224.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/tmp/dvdcss-ErkYTP/Packages'

[ <=> ] 14,679 --.-K/s in 0.09s

2015-12-05 02:38:13 (163 KB/s) - `/tmp/dvdcss-ErkYTP/Packages' saved [14679]

--2015-12-05 02:38:13-- http://packages.medibuntu.org/
Resolving packages.medibuntu.org (packages.medibuntu.org)... 141.8.224.175
Connecting to packages.medibuntu.org (packages.medibuntu.org)|141.8.224.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/tmp/dvdcss-ErkYTP/libdvdcss.deb'

[ <=> ] 14,670 92.8K/s in 0.2s

2015-12-05 02:38:13 (92.8 KB/s) - `/tmp/dvdcss-ErkYTP/libdvdcss.deb' saved [14670]

dpkg-deb: error: `/tmp/dvdcss-ErkYTP/libdvdcss.deb' is not a debian format archive
dpkg: error processing /tmp/dvdcss-ErkYTP/libdvdcss.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/tmp/dvdcss-ErkYTP/libdvdcss.deb
Dynamic fetch failed; Falling back to static fetch
--2015-12-05 02:38:14-- http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.10-0.2medibuntu1_amd64.deb
Resolving packages.medibuntu.org (packages.medibuntu.org)... 141.8.224.175
Connecting to packages.medibuntu.org (packages.medibuntu.org)|141.8.224.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/tmp/dvdcss-ErkYTP/libdvdcss.deb'

[ <=> ] 14,652 80.2K/s in 0.2s

2015-12-05 02:38:15 (80.2 KB/s) - `/tmp/dvdcss-ErkYTP/libdvdcss.deb' saved [14652]

dpkg-deb: error: `/tmp/dvdcss-ErkYTP/libdvdcss.deb' is not a debian format archive
dpkg: error processing /tmp/dvdcss-ErkYTP/libdvdcss.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/tmp/dvdcss-ErkYTP/libdvdcss.deb
trisquel@thinkpad:~$
[/code]

lembas
Offline
Joined: 05/13/2010

Looks like that medibuntu domain has expired. Just download the source and compile it yourself. The package contains instructions. http://download.videolan.org/pub/libdvdcss/last/

EDIT: somebody should file a bug as well

oralfloss
Offline
Joined: 06/20/2013

I got an error when trying to configure it. Any idea how I can fix that?

trisquel@thinkpad:~/Downloads/libdvdcss/libdvdcss-1.2.13$ ./configure --prefix=/usr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/trisquel/Downloads/libdvdcss/libdvdcss-1.2.13':
configure: error: C compiler cannot create executables
See `config.log' for more details

lembas
Offline
Joined: 05/13/2010

Have you successfully compiled other things? Do you have build-essential installed?

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

The description of "build-essential" starts with:
If you do not plan to build Debian packages, you don't need this package.

I would bet on the headers of a basic library missing. Is "libc6-dev" installed?

lembas
Offline
Joined: 05/13/2010

Think of it as a meta package. Its dependencies include libc6-dev too.

Sure, installing it wastes 40kB of disk space but I think most people can live with that. ;)

evoblade
Offline
Joined: 10/25/2015

I don't know why people insist on using descriptions like this. If you intend to install software you will probably need this eventually. In fact, I'm pretty sure I've never not needed to install this (or its equivalent).

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

That is not true. I have never installed this package, in spite of developing in C++. I installed g++ and make. Why would I need dpkg-dev (in dependency of build-essential)? I do not make DEB packages.

oralfloss
Offline
Joined: 06/20/2013

I don't know if I've successfully compiled other things. I don't know anything about installing. I always use Synaptic Package Manager.

I don't have build-essential. Should I install it?

lembas
Offline
Joined: 05/13/2010

You need it or at least the packages it depends on if you plan on compiling things.

Or follow the updated instructions on the wiki.

onpon4
Offline
Joined: 05/30/2012

That's not necessarily true. You need gcc to compile C programs, g++ to compile C++ programs, probably make, and libc6-dev. Any given program is also going to need other dependencies; one that's become quite common is cmake.

But for other languages, the requirements can be completely different. Python doesn't need any of these, for example.

build-essential isn't supposed to be something you need to compile things. It's defined as "a minimal set of packages that are always needed to compile, link and put in a Debian package a standard "Hello World!" program written in C or C++",[1] and its purpose is to reduce the number of build-time dependencies that have to be listed by packages.

[1] https://www.debian.org/doc/debian-policy/ch-source.html

lembas
Offline
Joined: 05/13/2010

Sure but c and c++ tend to be fairly ubiquitous. According to this [1] ~70% of the packages in Debian 5.0 are c and c++.

[1] https://researchgate.net/profile/Jesus_Gonzalez-Barahona/publication/229014230_Measuring_Lenny_the_size_of_Debian_5.0/links/0deec5200b5b4b35e5000000.pdf

oralfloss
Offline
Joined: 06/20/2013

I tried following the updated instructions on the wiki and when I got to the "apt-get install libdvdcss" part I got this error.

trisquel@thinkpad:~$ sudo apt-get install libdvdcss
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libdvdcss is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libdvdcss' has no installation candidate
trisquel@thinkpad:~$

jxself
Offline
Joined: 09/13/2010

Oh, it's actually supposed to be libdvdcss2. I've updated the wiki.

oralfloss
Offline
Joined: 06/20/2013

Finally! Thank you so much.

Legimet
Offline
Joined: 12/10/2013

This is also a security issue, since the script doesn't do signature checking and someone could host malicious .debs. The script should be removed, and people should be directed to the (updated by jxself) instructions on the wiki page.

jxself
Offline
Joined: 09/13/2010

I have updated the wiki with information about how to use the apt repo provided by the folks at videolan.org.