Dependency problems

Andrew Bartlett abartlet at
Wed Nov 20 18:28:24 MST 2013

On Fri, 2013-10-11 at 10:39 +0200, antlib at wrote:
> Hi all,
> I try to install SAMBA4 on Debian Wheezy 7.1.
> But at a moment i get this error :
> ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -  
> ProvisioningError: guess_names: Realm 'DEBIAN' must not be equal to  
> hostname 'debian'!
>    File "/usr/lib/python2.7/dist-packages/samba/netcmd/",  
> line 398, in run
>      use_rfc2307=use_rfc2307, skip_sysvolacl=False)
>    File  
> "/usr/lib/python2.7/dist-packages/samba/provision/", line  
> 1892, in provision
>      sitename=sitename, rootdn=rootdn)
>    File  
> "/usr/lib/python2.7/dist-packages/samba/provision/", line  
> 564, in guess_names
>      raise ProvisioningError("guess_names: Realm '%s' must not be  
> equal to hostname '%s'!" % (realm, hostname))

> Please, how to solve this problem ?

Don't use these packages as an AD DC.  Samba 4.0.1 is very old, and the
packages presented in wheezy are not suitable for building an AD DC, and
should not in retrospect have been included.  Wheezy/testing now has
current and correct packages. 

Either way, the issue comes from your hostname and DNS domain being
'debian' at the same time. 

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team 
Samba Developer, Catalyst IT         

More information about the samba-technical mailing list