Comment 6 for bug 1886114

Revision history for this message
Bryce Harrington (bryce) wrote :

After messing around with a bunch of permutations of installing/uninstalling/purging various samba components, and removing/creating various config dirs and files, I notice this set of steps seem to produce *a* error similar to what's reported, although it's not giving exactly the same error output:

$ sudo apt-get install samba
$ sudo apt-get remove --purge samba-common-bin
$ sudo rm -rf /run/samba
$ sudo rm -rf /etc/samba
$ sudo apt-get install samba-common-bin
Reading package lists... Done
...
The following NEW packages will be installed:
  samba-common-bin
...
Setting up samba-common-bin (2:4.13.3+dfsg-1ubuntu2) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: error processing package samba-common-bin (--configure):
 installed samba-common-bin package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.9.3-2) ...
Errors were encountered while processing:
 samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

(To get the system back after this, run: sudo apt-get remove --purge *samba*; sudo apt-get install samba)

I don't seem to get the errors about the missing /run/samba directory, but wonder if that is due to an unrelated configuration issue? In any case there seems to be a matching debian report here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953530