package slapd 2.4.23-6ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #874339 reported by hegenious
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
openldap
New
Undecided
Unassigned
openldap (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

slapd fails to install

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: slapd 2.4.23-6ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
Architecture: i386
CNConfig: Error: command ['/usr/bin/ldapsearch', '-Q', '-LLL', '-Y EXTERNAL', '-H ldapi:///', '-b cn=config'] failed with exit code 255: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
Date: Fri Oct 14 16:48:41 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: openldap
Title: package slapd 2.4.23-6ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to natty on 2011-05-23 (143 days ago)

Revision history for this message
hegenious (thuis-onsnet) wrote :
Revision history for this message
hegenious (thuis-onsnet) wrote :

I am about to upgrade to ubuntu 11.10 and will try to install ldap again after the upgrade

Revision history for this message
Dave Walker (davewalker) wrote :

Setting up slapd (2.4.23-6ubuntu6) ...
  Omitting slapd configuration as requested.
 * No configuration file was found for slapd at /etc/ldap/slapd.conf.
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess installed post-installation script returned error exit status 1

Changed in openldap (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openldap (Ubuntu):
status: New → Confirmed
Revision history for this message
Tobias Bradtke (webwurst) wrote :
Download full text (4.2 KiB)

I am trying to install slapd on a fresh Ubuntu server. Package configuration asks me to enter an "Administrator password" and then again to confirm. Next screen tells me my entered configuration is invalid:

"The configuration you entered is invalid. Make sure that the DNS domain name is syntactically valid, the field for the organization is not left empty and the admin passwords match. If you decide not to retry the configuration the LDAP server will not be set up. Run 'dpkg-reconfigure slapd'"

But "sudo dpkg-reconfigure slapd" gives:
/usr/sbin/dpkg-reconfigure: slapd is broken or not fully installed

$ uname -a
Linux ubuntu-server 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Here the full output of the installation:

$ sudo aptitude install slapd
The following NEW packages will be installed:
  libltdl7{a} libperl5.12{a} libslp1{a} odbcinst{a} odbcinst1debian2{a} slapd unixodbc{a}
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2051 kB of archives. After unpacking 6271 kB will be used.
Do you want to continue? [Y/n/?]
Preconfiguring packages ...
Selecting previously deselected package libltdl7.
(Reading database ... 49208 files and directories currently installed.)
Unpacking libltdl7 (from .../libltdl7_2.4-2ubuntu1_amd64.deb) ...
Selecting previously deselected package libperl5.12.
Unpacking libperl5.12 (from .../libperl5.12_5.12.4-4_amd64.deb) ...
Selecting previously deselected package libslp1.
Unpacking libslp1 (from .../libslp1_1.2.1-7.8ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst.
Unpacking odbcinst (from .../odbcinst_2.2.14p2-2ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1debian2_2.2.14p2-2ubuntu1_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.14p2-2ubuntu1_amd64.deb) ...
Selecting previously deselected package slapd.
Unpacking slapd (from .../slapd_2.4.25-1.1ubuntu4_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up libltdl7 (2.4-2ubuntu1) ...
Setting up libperl5.12 (5.12.4-4) ...
Setting up libslp1 (1.2.1-7.8ubuntu1) ...
Setting up odbcinst (2.2.14p2-2ubuntu1) ...
Setting up odbcinst1debian2 (2.2.14p2-2ubuntu1) ...
Setting up unixodbc (2.2.14p2-2ubuntu1) ...
Setting up slapd (2.4.25-1.1ubuntu4) ...
  Omitting slapd configuration as requested.
 * No configuration file was found for slapd at /etc/ldap/slapd.conf.
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up slapd (2.4.25-1.1ubuntu4) ...
  Omitting slapd configura...

Read more...

Revision history for this message
WM (wandererm) wrote :

I've tried some test cases, and confirmed that this problem now 11.10 only occurred in x64 server edition.

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.