[can-not-install] postinst failure running init-db

Bug #118003 reported by Chad McAuley
4
Affects Status Importance Assigned to Milestone
irm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: irm

Ran into this when I went to install irm in a clean, fully updated Feisty install running under VMWare. Everything goes smoothly until the postinstall script runs and I'm greeted with teh following error:

Setting up irm (1.5.3.1-1.1ubuntu2) ...

Creating config file /etc/irm/database.ini with new version

Creating config file /etc/irm/apache.conf with new version
/var/lib/dpkg/info/irm.postinst: 75: /usr/share/irm/init-db: not found
dpkg: error processing irm (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 irm
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up irm (1.5.3.1-1.1ubuntu2) ...
/var/lib/dpkg/info/irm.postinst: 75: /usr/share/irm/init-db: not found
dpkg: error processing irm (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 irm

After a little poking around, I discovered that while irm depends on php5, /usr/share/irm/init-db (and /usr/share/irm/update-db) both specify /usr/bin/php4 as the interpreter to use. Editing /usr/share/irm/init-db and changing the first line from '#!/usr/bin/php4 -Cq' to '#!/usr/bin/php -Cq' (or alternatively, to '#!/usr/bin/php5 -Cq') and rerunning 'aptitude install irm' allows the postinst routine to run without errors.

Related branches

Changed in irm:
assignee: nobody → dktrkranz
status: Unconfirmed → In Progress
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
Attached debdiff should fix this.

Changed in irm:
assignee: dktrkranz → nobody
status: In Progress → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

irm (1.5.3.1-1.1ubuntu3) gutsy; urgency=low

  * Use /usr/bin/php -Cq in init-db and upgrade-db (LP: #118003)
  * Suggests php5-ldap

 -- Luca Falavigna <email address hidden> Sat, 16 Jun 2007 13:54:30 +0200

Changed in irm:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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