This looks like the relevant portion of the logs:
Configurando samba (2:4.5.8+dfsg-0ubuntu0.17.04.3) ... 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 Job for nmbd.service failed because a timeout was exceeded. Thanks -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to init-system-helpers in Ubuntu. https://bugs.launchpad.net/bugs/1704394 Title: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.3 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1 Status in init-system-helpers package in Ubuntu: New Status in samba package in Ubuntu: New Bug description: When i login the system display a message error box ProblemType: Package DistroRelease: Ubuntu 17.04 Package: samba 2:4.5.8+dfsg-0ubuntu0.17.04.3 ProcVersionSignature: Ubuntu 4.10.0-26.30-generic 4.10.17 Uname: Linux 4.10.0-26-generic x86_64 ApportVersion: 2.20.4-0ubuntu4.1 Architecture: amd64 Date: Fri Jul 14 04:45:05 2017 ErrorMessage: sub-processo script post-installation instalado retornou estado de saída de erro 1 InstallationDate: Installed on 2017-05-15 (59 days ago) InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412) RelatedPackageVersions: dpkg 1.18.10ubuntu2 apt 1.4 SambaServerRegression: Yes SmbConfIncluded: Yes SmbLog: SourcePackage: samba Title: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.3 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1 UpgradeStatus: No upgrade log present (probably fresh install) WindowsFailedConnect: Yes To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1704394/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

