Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.7) ...

Samba is not being run as an AD Domain Controller.

Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.

Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.