Samba does not launch after upgrading to 16.04

Removing security = share from my personal smb.conf without reinstalling, and running systemctl restart smbd.service, fixed the problem for me.


I had the exact problem after upgrading to 16.04, first showed many errors as yours, something like:

dpkg: error processing package samba (--configure)

After I changed software sources to ubuntu main server, I can reinstall samba and the following commands without error:

sudo /etc/init.d/smbd status
sudo apt-get install libnss-winbind* libpam-winbind* samba* winbind*

Because the uninstall of samba was --purge, my old smb.conf was removed, it generated a new one, I think after I edit it, it won't be a problem.


I got the same problem. Comment this line security = share. And restarted smdb service and it works well again.