package phamm-ldap 0.5.15-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10

Bug #655518 reported by xbradx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phamm (Ubuntu)
Fix Released
High
Unassigned
Maverick
Fix Released
High
Unassigned

Bug Description

Binary package hint: phamm

happens every time I update or the system updates

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: phamm-ldap 0.5.15-1
ProcVersionSignature: Ubuntu 2.6.32-24.43-server 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Wed Oct 6 02:40:13 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 10
PackageArchitecture: all
SourcePackage: phamm
Title: package phamm-ldap 0.5.15-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10

Related branches

Revision history for this message
xbradx (faisedfist) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Here is the error message:

Setting up phamm (0.5.15-1) ...
dpkg: error processing phamm (--configure):
 subprocess installed post-installation script returned error exit status 10

This indicates some debconf error but given the amount of similar bugs it looks like a wider issue.

Revision history for this message
Michael Vogt (mvo) wrote :
Download full text (11.3 KiB)

I can not install phamm in a clean chroot, output with DEBCONF_DEBUG=developer:

# apt-get install phamm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package phamm
root@top:/# vi /etc/apt/sources.list
root@top:/# apt-get update
Get:1 http://archive.ubuntu.com maverick Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Get:2 http://archive.ubuntu.com maverick Release [57.3kB]
Get:3 http://archive.ubuntu.com maverick/main amd64 Packages [1491kB]
Get:4 http://archive.ubuntu.com maverick/universe amd64 Packages [5771kB]
Fetched 7320kB in 11s (621kB/s)
Reading package lists... Done
root@top:/# export DEBCONF_DEBUG=developer
root@top:/# apt-get install phamm
root@top:/# apt-get install phamm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libxml2 php5 php5-common php5-ldap
Suggested packages:
  www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw php-pear
  apache2 php5-suhosin
Recommended packages:
  ssl-cert php5-cli xml-core phamm-ldap
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libxml2 phamm php5 php5-common php5-ldap
0 upgraded, 14 newly installed, 0 to remove and 7 not upgraded.
Need to get 0B/8078kB of archives.
After this operation, 23.6MB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
debconf (developer): starting /tmp/phamm.config.80471 configure
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- GET slapd/domain
debconf (developer): --> 10 slapd/domain doesn't exist
debconf (developer): <-- INPUT high phamm/ldap-server
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET phamm/ldap-server
debconf (developer): --> 0 127.0.0.1
debconf (developer): <-- INPUT high phamm/ldap-tls
debconf (developer): --> 10 "phamm/ldap-tls" doesn't exist
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET phamm/ldap-tls
debconf (developer): --> 10 phamm/ldap-tls doesn't exist
debconf (developer): <-- SET phamm/ldap-basedn dc=10 slapd/domain doesn't exist
debconf (developer): --> 0 value set
debconf (developer): <-- SET phamm/ldap-binddn cn=admin,dc=10 slapd/domain doesn't exist
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT high phamm/ldap-binddn
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- INPUT high phamm/reconfigure-webserver
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): ...

Changed in phamm (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

So it appears that:

 db_get slapd/domain || true
 if [ -n "$RET" ]; then
     basedn="dc=`echo $RET | sed 's/^\.//; s/\./,dc=/g'`"
 fi

if giving:
"10 slapd/domain doesn't exist" and that results in a odd basedn variable.

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

This bug was fixed in the package phamm - 0.5.18-2ubuntu1

---------------
phamm (0.5.18-2ubuntu1) maverick; urgency=low

  * debian/phamm.config:
    - fix incorrect use of dh_get that causes upgrade/install failures
      with odd error messages (LP: #655518)
 -- Michael Vogt <email address hidden> Wed, 06 Oct 2010 12:02:38 +0200

Changed in phamm (Ubuntu Maverick):
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.