package monodoc-base 2.4.4~svn151842-1ubuntu4 failed to install/upgrade: post-installation script exit status 127 - /usr/bin/update-monodoc: line 3: [: argument expected

Bug #591547 reported by Kiljoy001
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mono

monodevelop package fails to install

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: monodoc-base 2.4.4~svn151842-1ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Tue Jun 8 19:48:12 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationMedia: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Release i386 (20091028.4)
PackageArchitecture: all
SourcePackage: mono
Title: package monodoc-base 2.4.4~svn151842-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127

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

Thanks for your report.

The error is
---
Setting up monodoc-manual (2.4.4~svn151842-1ubuntu4) ...
Processing triggers for monodoc-base ...
/usr/bin/update-monodoc: line 3: [: argument expected
generating monodoc search index...
/usr/bin/update-monodoc: line 9: monodoc: command not found
dpkg: error processing monodoc-base (--configure):
 subprocess installed post-installation script returned error exit status 127

summary: package monodoc-base 2.4.4~svn151842-1ubuntu4 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 127
+ post-installation script exit status 127 - /usr/bin/update-monodoc: line
+ 3: [: argument expected
Revision history for this message
Brendan (brendan-rankin) wrote :

In my case, this is caused by soft linking /bin/bash as /bin/sh. Both /bin/zsh and /bin/dash behave properly, but for some reason bash hates the if [ syntax on line 3 of update-monodoc. Personally, I would still categorize this as a bug in update-monodoc as these sorts of scripts should be written in very generic Bourne Shell syntax... Either that or it's a bug in the bash shell parser.

Revision history for this message
The Dave (thedave) wrote :

Brendan, nice work on finding a work-around. Thx

tags: added: package-conflict
Changed in mono (Ubuntu):
status: New → Confirmed
Revision history for this message
ottadini (ben-harrison) wrote :

Hi, I'm a bit thick. Does Brendan's comment suggest that I should remove the soft link of /bin/bash as /bin/sh? How?

Revision history for this message
Brendan (brendan-rankin) wrote :

Yes. That's exactly what I did. I think there's an official way to do it, but I just 'rm -f /bin/sh' and then make the link to zsh or dash using 'ln -s'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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