stone failed to install : incorrect use of command substitution in postinst

Bug #495539 reported by marciowillians
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
stone (Debian)
Fix Released
Unknown
stone (Ubuntu)
Fix Released
Undecided
Jean-Baptiste Lallement

Bug Description

Package failed to install with exit status 1

== HOW TO REPRODUCE ==
$ apt-get install stone

Fails with the following message
Setting up stone (2.3.e-1ubuntu1) ...
dpkg: error processing stone (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 stone
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up stone (2.3.e-1ubuntu1) ...
You already have /etc/certs/stone.pem

== VERSION ==
Reproduced with
     stone | 2.3.e-1ubuntu1 | karmic/universe | source, amd64, i386
     stone | 2.3.e-1.1 | lucid/universe | source, amd64, i386

ProblemType: Package
Architecture: i386
Date: Fri Dec 11 14:05:22 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: sub-processo script post-installation instalado retornou estado de saída de erro 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: stone 2.3.e-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: stone
Title: package stone 2.3.e-1ubuntu1 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1
Uname: Linux 2.6.31-16-generic i686

Related branches

Revision history for this message
marciowillians (marciowillians) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

This is due to the postinst script using bash syntax but being with /bin/sh (dash)
To workaround this open a terminal and run the following commands:
$ sudo rm /etc/ssl/certs/stone.pem
$ sudo bash -x /var/lib/dpkg/info/stone.postinst configure

Don't hesitate to submit any new bug.

Changed in stone (Ubuntu):
status: New → Confirmed
summary: - package stone 2.3.e-1ubuntu1 failed to install/upgrade: sub-processo
- script post-installation instalado retornou estado de sa?da de erro 1
+ stone failed to install : bashism in postinst
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Correction, there is no workaround even if bash exit with 0 the certificate generated by openssl in not valid. Patch is coming.

summary: - stone failed to install : bashism in postinst
+ stone failed to install : incorrect use of command substitution in
+ postinst
Changed in stone (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
status: Confirmed → In Progress
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

patch for lucid.

Changed in stone (Ubuntu):
status: In Progress → Confirmed
description: updated
Revision history for this message
StefanPotyra (sistpoty) wrote :

patch looks good, test-building.

Can you forward your patch to debian please?

Thanks,
    Stefan.

Revision history for this message
StefanPotyra (sistpoty) wrote :

thanks, uploading.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package stone - 2.3.e-1.1ubuntu1

---------------
stone (2.3.e-1.1ubuntu1) lucid; urgency=low

  * debian/postinst:
    - Fix incorrect use of command expansion which prevent
    installation of the package with dash (LP: #495539)
    - Display the right path to the certificate when it already exists
 -- Jean-Baptiste Lallement <email address hidden> Sat, 09 Jan 2010 16:43:26 +0100

Changed in stone (Ubuntu):
status: Confirmed → Fix Released
Changed in stone (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.