Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that there's a Ubuntu-specific StackExchange website, but I thought that I'd ask here because it's a server-specific question. If I'm wrong in my logic... Well, you people are better at this than I am! O=) On with the show!

I'm in the process of installing Oracle Database 11g R2 Standard Edition onto Ubuntu Server 11.10. I found a guide on the Oracle Support Forums that walks you through the process fairly easily. Unfortunately, I'm running into issues installing one particular dependency: slapd.

When I go to install it, I get this error message:

(Reading database ... 64726 files and directories currently installed.)
Unpacking slapd (from .../slapd_2.4.25-1.1ubuntu4.1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up slapd (2.4.25-1.1ubuntu4.1) ...
Usage: slappasswd [options]
-c format crypt(3) salt format
-g generate random password
-h hash password scheme
-n omit trailing newline
-s secret new password
-u generate RFC2307 values (default)
-v increase verbosity
-T file read file for new password
Creating initial configuration... Loading the initial configuration from the ldif file () failed with
the following error while running slapadd:
str2entry: invalid value for attributeType olcRootPW #0 (syntax
slapadd: could not parse entry (line=1051)
dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

After much Google searches and forum trolling, I have yet to find a definitive answer as to what's going wrong. The error messages seem straight forward enough, but I have no idea how to debug this. Can anyone offer some assistance? Again, if I'm asking in the wrong place, I apologize. If I'm indeed asking properly, then thank you for any and all help!

share|improve this question
up vote 2 down vote accepted

So, it turns out that I'm an idiot, and didn't read the documentation correctly. It turns out that you have to configure the server's hostname into format. You can do that by editing the /etc/hosts file. Happy hunting, everyone!

share|improve this answer

It seems that the preinstall script from the slapd-package calls slappasswd with the wrong arguments. This could be caused by updates which might have been applied to the tool slappasswd.

Download the debian package manually and extract its content with

dpkg -x <package name>

Have a look at the content of /debian/preinstall and see how slappasswd is called. You can modify the script, rebuild the package with

dpkg-buildpackage -tc -us -uc -rfakeroot

After that, simply install the built package:

dpkg -i <package name>
share|improve this answer
Thank you for your answer! I'll try it out! – Zach Dziura Apr 13 '12 at 18:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.