It is indeed confusing, I totally agree.
Maybe we should morph this bug into that issue only. Something like
"confusing error message when not configured as AD/DC"
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
That is expected, see comment #8. Unless your apt operation exited with
a status code other than zero, i.e., apt or dpkg actually finished with
an error.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
@aleandrodasilva, which error is the same? We have established that the
"Failed to preset unit" messages are harmless.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1658273
Title:
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