Public bug reported:

Related to
https://answers.launchpad.net/ubuntu/+source/openldap/+question/237854

When upgrading slapd, I observed the following:

root@ubuntu:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up slapd (2.4.28-1.1ubuntu4.4) ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.28-1.1ubuntu4.3... cp: 
cannot overwrite directory `/var/backups/slapd-2.4.28-1.1ubuntu4.3/slapd.d' 
with non-directory
dpkg: error processing slapd (--configure):
 subprocess installed 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@ubuntu:~#

Now, I take the reason it did not like my /etc/ldap/slapd.d is because
it is an alias (/etc/ldap/slapd.d -> /export/ldap/slapd). But, why
should it care? There are many ways to copy an alias and expand it in
the process. And, I have not noticed such behaviour before. Did
something change in apt or openldap to make the postinstall annoyed at
the alias?

The proposed solution/workaround worked but it still possible that it
will fail next time.

** Affects: openldap (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/1245921

Title:
  postinstaller expects slapd.d to be a directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/1245921/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to