hi, just stumbled across this since i was looking at samba4 just rm/mv smb.conf which is installed by the older samba packages at the same time as samba4.
so apt-get install samba4: err rm /etc/samba/smb.conf apt-get install samba4 now, in relation to this error : https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/832465/comments/12 suggests: /etc/hosts 127.0.0.1 localhost.localdomain localhost 127.0.1.1 svrwebdev.letsxchange.nl svrwebdev /etc/hostname svrwebdev.letsxchange.nl which fixes the same problem for other people. there seems to be two traps people are falling into. one old smb.conf they want migrated with bad options, fresh smb.conf they don't need and samba4 should ignore or have the default for the old samba packages corrected. the default local domain is usually a single prefix .local .config etc. This also seems to be a problem for samba4, which wants lan.config local.lan etc, due to the AD DNS type prefixing. now i installed without changing the DNS files as advised above(but using a local.lan as the local dns prefix), i'm not 100% everything is working, but i will show the relevant output incase just setting a correct internal dns / hostname is not the same as hostname/hosts fixes above. Adding DomainDN: DC=local,DC=lan Creating CN=MicrosoftDNS,CN=System,DC=local,DC=lan Server Role : domain controller Hostname: correct DNS Domain: local.lan NetBIOS Domain: WORKGROUP < m$ default? set it to DNS Domain, without the prefix? DOMAIN SID: generated correctly. Admin password: really secure. so in closing, only smb.conf removal seems to be required as well as local.lan style dns prefix instead of just single .local Please correct me if I am wrong, and at least it seems the fixes are trivial. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org