On Tue, 2020-03-10 at 08:40 +0100, Gian Piero Carrubba wrote: > Package: samba-common-bin > Version: 2:4.11.5+dfsg-1+b1 > Severity: normal > > While upgrading samba-common-bin from 2:4.11.5+dfsg-1 to 2:4.11.5+dfsg-1+b1: > > --- > Performing actions... > Setting up samba-common-bin (2:4.11.5+dfsg-1+b1) ... > Checking smb.conf with testparm > 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 > > dpkg: error processing package samba-common-bin (--configure): > installed samba-common-bin package post-installation script subprocess > returned error exit status 1 > Errors were encountered while processing: > samba-common-bin > E: Sub-process /usr/bin/dpkg returned an error code (1) > ---
I just ran into the same issue with a fresh install of 2:4.11.5+dfsg-1+b1. For reference, packaging/systemd/README contains the following warning: > If you're a packager don't forget to run the systemd-tmpfiles binary > in the script after samba has been installed. This makes sure the > directory exists and you can start samba directly after the installation. > > /usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/samba.conf Presumably that should be changed to /bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/samba.conf for the current Debian packaging. Cheers, Kevin packaging/systemd/README: https://git.samba.org/samba.git/?p=samba.git;a=blob;f=packaging/systemd/README