Thanks for the bug report. Based on your logs, this is the error that's happening:
Load smb config files from /etc/samba/smb.conf Loaded services file OK. ERROR: lock directory /run/samba does not exist ERROR: pid directory /run/samba does not exist Server role: ROLE_STANDALONE [1mdpkg:[0m erro ao processar o pacote samba-common-bin (--configure): o subprocesso instalado, do pacote samba-common-bin, o script post-installation retornou erro do status de saída 1 This issue is known and has been reported to the Debian samba package as well: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975422 Although I wasn't able to reproduce it, the rationale described in the link above makes sense to me, and I can confirm that, on Focal, samba- common-bin.postinst is calling systemd-tmpfiles *after* calling testparm, which is what causes this issue. Debian's fix is here: https://salsa.debian.org/samba- team/samba/-/commit/0c3b2056764cd1a566766c3e1764d7c312eab5d7 I'm adding this bug to our TODO list, and marking it as Triaged. ** Bug watch added: Debian Bug tracker #975422 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975422 ** Changed in: samba (Ubuntu) Status: New => Triaged ** Changed in: samba (Ubuntu) Importance: Undecided => Medium ** Summary changed: - package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.6 failed to install/upgrade: o subprocesso instalado, do pacote samba-common-bin, o script post-installation retornou erro do status de saída 1 + samba-common-bin should call systemd-tmpfiles before testparm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1905387 Title: samba-common-bin should call systemd-tmpfiles before testparm To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1905387/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs