samba4 安装后的问题

samba4 安装后的问题

我是一名 Linux 新手。我最近在 Ubuntu 13.04 上安装了 samba4,但遇到了安装后错误

bobby@bobby-Aspire-4732Z:~$ sudo apt-get install samba4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
samba4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up samba4 (4.0.3+dfsg1-0.1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 58, in __init__
self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
bobby@bobby-Aspire-4732Z:~$

有没有人遇到过这种情况,我可以给你一些解释吗?谢谢。

问候,Bobby

答案1

首先卸载你的 Samba 版本:

sudo apt-get purge samba4

sudo apt-get install -f

其次添加 samba4 存储库:

 sudo apt-add-repository "deb http://ppa.launchpad.net/kernevil/samba4/ubuntu precise main"

sudo apt-get update

第三安装samba4依赖项:

sudo apt-get install git build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl libcups2-dev libpam0g-dev ntp -y

第四次下载samba4:

sudo apt-get install samba4

答案2

https://sourceforge.net/projects/samba4all/

我那里有几个 VirtualBox OVA 和安装说明。

我个人会搜索 sernet samba 并下载其版本。似乎效果更好

相关内容