Comment 2 for bug 6942

Revision history for this message
In , Martin Zobel-Helas (zobel) wrote : Re: Bug#257513: slapd: Fails to install on mips

Torsten Landschoff wrote:
> On Sun, Jul 04, 2004 at 01:39:09AM +0200, Martin Helas wrote:
> > Creating initial LDAP directory... slapadd: could not add entry dn="dc=mhelas,dc=home"
> > (line=7): txn_begin failed: Invalid argument (22)
> > dpkg: error processing slapd (--configure):
> > subprocess post-installation script returned error exit status 1
> > Errors were encountered while processing:
> > slapd
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Please make sure that /var/lib/ldap exists and is empty and retry the
> installation.
>
> Thanks
>
> Torsten

I tried it again, but no change.

root@indy:/# dpkg --purge slapd
(Reading database ... 18428 files and directories currently installed.)
Removing slapd ...
Stopping OpenLDAP: slapd.
Stopping OpenLDAP: slapd.
Purging configuration files for slapd ...
Removing slapd configuration... done
Removing maintainer script flag files... done
dpkg - warning: while removing slapd, directory `/var/lib/slapd' not empty so not removed.
root@indy:/# rm -rf /var/lib/ldap
root@indy:/# mkdir /var/lib/ldap
root@indy:/# apt-get install slapd/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
Selected version 2.1.30-1 (Debian:unstable) for slapd
Suggested packages:
  ldap-utils openldap-guide
Recommended packages:
  db4.2-util libsasl2-modules
The following NEW packages will be installed:
  slapd
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/934kB of archives.
After unpacking 3285kB of additional disk space will be used.
Preconfiguring packages ...
/tmp/slapd.config.44781: line 275: !echo: command not found
Selecting previously deselected package slapd.
(Reading database ... 18345 files and directories currently installed.)
Unpacking slapd (from .../slapd_2.1.30-1_mips.deb) ...
Setting up slapd (2.1.30-1) ...
/var/lib/dpkg/info/slapd.config: line 275: !echo: command not found
Creating initial slapd configuration... done
Creating initial LDAP directory... slapadd: could not add entry dn="dc=mhelas,dc=home" (line=7): txn_begin failed: Invalid argument (22)
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@indy:/# uname -a
Linux indy 2.4.26-r4k-ip22 #1 Mon May 31 00:50:31 CEST 2004 mips GNU/Linux
root@indy:/# ls -al /var/lib/ldap
total 4
drwxr-xr-x 2 root root 6 Jul 4 10:27 .
drwxr-xr-x 18 root root 4096 Jul 4 10:27 ..
root@indy:/#

Greetings
Martin

--
  Martin Helas <email address hidden> or <email address hidden>
  http://www.helas.net or http://mhelas.blogspot.com
  GPGKey-Fingerprint: 14744CACEF5CECFAE29E2CB17929AB90F7AC3AF0