These messages:
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is 
masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on 
samba-ad-dc.service: No such file or directory

Are not fatal. Look at the "|| true" ending of all those calls:
deb-systemd-helper unmask samba-ad-dc.service >/dev/null || true

# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled samba-ad-dc.service; then
        # Enables the unit on first installation, creates new
        # symlinks on upgrades if the unit file has changed.
        deb-systemd-helper enable samba-ad-dc.service >/dev/null || true
else
        # Update the statefile to add new symlinks (if any), which need to be
        # cleaned up on purge. Also remove old symlinks.
        deb-systemd-helper update-state samba-ad-dc.service >/dev/null || true
fi

It's confusing, and the upstream "fix" was to just echo a message asking
the administrator to ignore the error, which is a bit unfortunate:

https://anonscm.debian.org/cgit/pkg-
samba/samba.git/commit/?id=61eaeba2a7a2df61b681b4ea545811569de421d0

So back to the bug at hand.

Do you still have a crash happening, and if yes could you provide us with these 
files:
- /var/log/syslog
- /var/log/samba/log*
- /etc/samba/smb.conf

Then we can change the subject line of this bug and go from there.

** Changed in: samba (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1658273

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to