Samba: subprocess post-installation script returned error exit status 1

Run:

  • dpkg –purge samba-common
  • dpkg –purge samba