.debdiff for italc_3.0.1+dfsg1~bpo8+1

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Tue Dec 6 16:22:07 UTC 2016


Hi Holger,

On  Di 06 Dez 2016 17:10:18 CET, Holger Levsen wrote:

> On Tue, Dec 06, 2016 at 04:05:23PM +0000, Mike Gabriel wrote:
>> Can you add a "set -x" at the beginning of
>>
>>   /var/lib/dpkg/info/italc-client.postinst
>>
>> and then run
>>
>>   sudo dpkg-reconfigure italc-client
>>
>> and then send me the loooongish output of the failing postinst script?
>

> [...]

> + test -f /etc/italc/keys/public/admin/key -a -f
> /etc/italc/keys/private/admin/key
> + echo -n Creating iTALC public/private key pair for iTALC role »admin«
> ...
> Creating iTALC public/private key pair for iTALC role »admin« ... + imc
> -role admin -createkeypair
> dpkg: error processing package italc-client (--configure):
>  subprocess installed post-installation script returned error exit
> status 134
> dpkg: dependency problems prevent configuration of italc-master:
>  italc-master depends on italc-client; however:
>   Package italc-client is not configured yet.
>
> dpkg: error processing package italc-master (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  italc-client
>  italc-master
> [ Rootkit Hunter version 1.4.2 ]
> File updated: searched for 176 files, found 145
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Can you manually patch /var/lib/dpkg/info/italc-client.postinst as  
shown below and test if apt-get install -f works then?

Or rather... dpkg --configure -a

My previous dpkg-reconfigure call was wrong, dpkg --configure -a is  
the correct command. Using apt-get install -f might re-extract the  
.postinst, so we don't want that.

```
diff --git a/debian/italc-client.postinst b/debian/italc-client.postinst
index 2a42b6f..291b659 100755
--- a/debian/italc-client.postinst
+++ b/debian/italc-client.postinst
@@ -111,6 +111,8 @@ case "$1" in
                                         unset DISPLAY
                                         if ! test -f  
"/etc/italc/keys/public/$role/key" -a -f  
"/etc/italc/keys/private/$role/key"; then
                                                 echo -n "Creating  
iTALC public/private key pair for iTALC role »$role« ... "
+                                               mkdir -p  
"/etc/italc/keys/public/$role/"
+                                               mkdir -p  
"/etc/italc/keys/private/$role/"
                                                 imc -role $role  
-createkeypair >/dev/null 2>/dev/null
                                                 chmod -Rf a-w,o-rx  
"/etc/italc/keys/public/$role"
                                                 chmod -Rf a-w,o-rx  
"/etc/italc/keys/private/$role"
```

Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/debian-edu-pkg-team/attachments/20161206/8f89941a/attachment.sig>


More information about the Debian-edu-pkg-team mailing list