package slapd 2.4.11-0ubuntu6 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #300033 reported by djh82uk
56
This bug affects 7 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: slapd

I have had terrible trouble getting slapd (openldap) installed and working, and now I am getting this error when trying to install via synaptic

the whole openldap situation needs to be looked at and some uptodate info added

for instance it looks in /etc/ldap/slapd.d/slapd.conf for it's config

but it puts it in /usr/local/etc/openldap/slapd.conf

DJH

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: fglrx
Package: slapd 2.4.11-0ubuntu6
SourcePackage: openldap
Title: package slapd 2.4.11-0ubuntu6 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic i686

Revision history for this message
djh82uk (0-admin-sigmatronics-co-uk) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

According to the log files, slapd has been successfully installed twice before the failure. Did you try to compile openldap from source and installed it in /usr/local before the failed attempt?

Changed in openldap:
status: New → Incomplete
Revision history for this message
Adam Sommer (asommer) wrote :

Hello,

I've upgraded several systems running slapd and I don't have a /usr/local/etc/openldap directory. Were you running the slapd package from the main repository?

From these lines in your DpkgTerminalLog:

    slapadd: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by slapadd)^M
    slapadd: /usr/local/lib/liblber-2.4.so.2: no version information available (required by slapadd)^M
    slapadd: relocation error: slapadd: symbol ldap_pvt_sasl_mutex_dispose, version OPENLDAP_2.4_2 not defined in file libldap_r-2.4.so.2 with link time reference^M

It looks like you have a locally compiled version of OpenLDAP.

Thanks

Revision history for this message
kkirankumar (kiran-ojussoftware) wrote :

I tried to install openldap by compiling the source. I then tried to install it from the package manager and I got this error message.

Revision history for this message
AttilaFlagello (fabiomacchini) wrote : Re: [Bug 300033] Re: package slapd 2.4.11-0ubuntu6 failed to install/upgrade: subprocess post-installation script returned error exit status 1

kkirankumar ha scritto:
> I tried to install openldap by compiling the source. I then tried to
> install it from the package manager and I got this error message.
>
>
now I don't have problem . I remove sldap and reboot the computer. now
after install package is ok

Revision history for this message
Mathias Gug (mathiaz) wrote :

As pointed out by Adam, slapd is looking for libraries in /usr/local/lib/. Your compilation and installation of openldap from source put libraries and binaries in /usr/local/ which takes precedence over system installed ones. Try to remove the locally compiled version of openldap and update the library cache. It should fix your system installed package.

Changed in openldap:
status: Incomplete → Invalid
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.