Problems with samba-ad-dc installaton.

I use Synaptic Package Manger for regular update of installed packages and to add some of the "new in the repository" packages.
Here are error outputs from Synaptic Package Manger that I've got recently.

Error message in dialog box:
----------------------------
E: samba-ad-dc: subprocess installed post-installation script returned error exit status 255

Copy/paste from "details" window:
---------------------------------
Errors were encountered while processing:
samba-ad-dc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up samba-ad-dc (2:4.0.6+dfsg-1kali1) ...
ERROR(ldb): uncaught exception - operations error at ../source4/dsdb/samdb/ldb_modules/rootdse.c:501
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 120, in run
reset_well_known_acls=reset_well_known_acls)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 69, in __init__
self.ntds_dsa = ldb.Dn(samdb, samdb.get_dsServiceName())
File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 856, in get_dsServiceName
res = self.search(base="", scope=ldb.SCOPE_BASE, attrs=["dsServiceName"])
dpkg: error processing samba-ad-dc (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
samba-ad-dc
----------------------------------

I don't know about the effects of the above error, since I don't use samba with (or as) a windows ad or domain controller, but would like to fix the error anyway.

Hope that someone will help.

Best regards and TIA.

cikasole