This is the change that masked the service:
samba (2:4.4.4+dfsg-2) unstable; urgency=medium
* Mask samba-ad-dc.service unless needed (Closes: #828137)
So all the change isin the scope of the 4.3.9+dfsg-0ubuntu1 -> 4.4.5
+dfsg-2ubuntu1 you mentioned before.
But one also has to consider: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=796789 which added the service to be in the same
"update-window".
It should update all services fine as it takes care of e.g. to call "systemctl
--system daemon-reload" after the changes.
And also the update you are currently doing 4.4.5+dfsg-2ubuntu1 ->
4.4.5+dfsg-2ubuntu3 didn't touch these services at all.
I'd assume that this is the first time the helpers kick in to clean up and mask
it.
The postinst really makes sure it is not run :-)
It symlinks it to /dev/null and also masks it.
But if you have no system with a service like that the symlink is already
enough and so the additional masking fails with the errors you report.
I recreated the issue and can state that the message itself is shown on a clean
yakkety installing samba:
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service →
/lib/systemd/system/nmbd.service.
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
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service →
/lib/systemd/system/smbd.service.
Processing triggers for libc-bin (2.24-0ubuntu1) ...
It appears to me that this was just taken to make sure it is off by doing it
two ways.
Probably for certain upgrade paths that have the file around not applicable to
your case nor my fresh install.
But OTOH this is non fatal for me.
The install/upgrade is not aborting or anything.
Are you missing any functionality due to this?
** Bug watch added: Debian Bug tracker #796789
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796789
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1610361
Title:
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-
ad-dc.service: No such file or directory
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1610361/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs