Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Tried to install cryptsetup from wheezy-backports

Tue Sep 09, 2014 5:05 am

Hi community,

in order to do a benchmark, I looked for the repository holding branch 1.6.x of cryptsetup, and found it in wheezy-backports. So I added the backports repo, imported the key, and installed 1.6.4 version from this repo, but now, every time I want to execute

Code: Select all

cryptsetup benchmark
(or any other command, for that matter), it outputs a rather unhelpful "Illegal instruction".

However, the exact same instructions worked on a Wheezy image…

How could I know where the issue is?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Tried to install cryptsetup from wheezy-backports

Tue Sep 09, 2014 6:55 am

Cubytus wrote:How could I know where the issue is?
You have installed incompatible software.

Raspbian is not Debian. They do not work together. Raspbian is Debian for the Pi. Debian armhf doesn't support the Pi.

Please don't add any Debian sources to your sources.list, or download any software from a Debian repository (ok, some will work - anything that contains "_all" instead of "_armhf" in the filename), or you can wreck your system and need to do a fresh install.

Stick to the Raspbian repos or any that state they are compatible with Raspbian.

Or you can build the software yourself from the Debian source code.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Tried to install cryptsetup from wheezy-backports

Tue Sep 09, 2014 4:25 pm

I am making some progress here. Apparently there's a conflict between the newly-built cryptsetup 1.6.6 (from source, with checkinstall) and initramfs-tools:

(…)

Code: Select all

initramfs-tools (0.115~bpo70+1) breaks cryptsetup (<< 2:1.1.0-2.1) and is installed.
What I don't understand is the << sign, for me it means "lower than", and surely cryptsetup 1.6.6 is a greater version number than 1.1.0.

The 1.4.3 branch (and 1.6.4) of cryptsetup recommends a version >= 0.91 to be installed, but the cryptsetup 1.6.6 is broken by initramfs-tools 0.115.

Code: Select all

Package: cryptsetup
Version: 2:1.4.3-4
Architecture: armhf
Maintainer: Debian Cryptsetup Team <pkg-cryptsetup-devel@lists.alioth.debian.org>
Installed-Size: 295
Depends: libc6 (>= 2.13-28), debconf (>= 0.5) | debconf-2.0, dmsetup, cryptsetup-bin
Recommends: kbd, console-setup, initramfs-tools (>= 0.91) | linux-initramfs-tool, busybox | busybox-static
Should I assume I need a lower initramfs-tools version? In such a case what would be the lower version? I am expecting 0.109, but from

Code: Select all

aptitude versions initramfs-tools
I see there's only version 0.115 present? Or am I reading it the wrong way?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Tried to install cryptsetup from wheezy-backports

Tue Sep 09, 2014 4:48 pm

The 2: in front of the version number is an "Epoch number". It overrides the normal version numbers and means "this is later than anything that doesn't have at least a 2: in front".

So 2:1.1.0 is higher than just 1.6.6

Rebuild your cryptsetup with a 2: in front of the version number.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Tried to install cryptsetup from wheezy-backports

Tue Sep 09, 2014 4:55 pm

And how do I specify an epoch number when building? or configuring?

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Tried to install cryptsetup from wheezy-backports

Fri Nov 07, 2014 4:25 am

Hello there,

I am resurrecting an old topic to post that, even adding 2: in front of the version number yields another error:

Code: Select all

Preparing to replace cryptsetup 1.6.6-1 (using .../cryptsetup_1.6.6-1_armhf.deb) ...
Unpacking replacement cryptsetup ...
dpkg: error processing /home/pi/cryptsetup-1.6.6/cryptsetup_1.6.6-1_armhf.deb (--install):
 trying to overwrite '/usr/share/man/man8/cryptsetup.8.gz', which is also in package cryptsetup-bin 2:1.4.3-4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /home/pi/cryptsetup-1.6.6/cryptsetup_1.6.6-1_armhf.deb
I understand it tried to replace an existing manpage? How is it solved?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Tried to install cryptsetup from wheezy-backports

Fri Nov 07, 2014 7:27 am

Somehow you have got that manpage in your cryptsetup package that would normally be in the cryptsetup-bin package. Have you built it with the wrong name?

If you are certain that you want to go ahead you could try the --force-overwrite option when you install it. Then you will get a warning instead of an error and the installation will continue.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: Tried to install cryptsetup from wheezy-backports

Fri Nov 07, 2014 12:41 pm

Code: Select all

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values: 

0 -  Maintainer: [ root@raspberrypi ]
1 -  Summary: [ cryptsetup homebuilt ]
2 -  Name:    [ cryptsetup ]
3 -  Version: [ 1.6.6 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ armhf ]
8 -  Source location: [ cryptsetup-1.6.6 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ cryptsetup ]
12 - Conflicts: [  ]
13 - Replaces: [  ]
Should I change value 2 to specify cryptsetup-bin? Or some other one? Sorry but so far it's vague.

Return to “Beginners”