package samba4 4.0.0~alpha18.dfsg1-4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba4 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Because regular samba server (2.3.x) that comes with precise isn't working for some reason (unable to browse the windows network, unable to share ntfs and ext4 folders) I decided to try samba4. However this is what happens when i try to install it.
Using precise updated to 16/04/2012
user@HPdc7900:~$ sudo apt-get install samba4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-libuser nvidia-cg-toolkit libtagc0 libtelepathy-
easytag libid3tag0 libid3-3.8.3c2a
Use 'apt-get autoremove' to remove them.
Suggested packages:
bind9 phpldapadmin samba-gtk swat2
The following NEW packages will be installed:
samba4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,647 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Preconfiguring packages ...
Traceback (most recent call last):
File "/usr/bin/
from samba.netcmd.main import cmd_sambatool
File "/usr/lib/
from samba.netcmd.
File "/usr/lib/
from samba.netcmd.common import _get_user_
File "/usr/lib/
from samba.net import Net
ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/bin/
from samba.netcmd.main import cmd_sambatool
File "/usr/lib/
from samba.netcmd.
File "/usr/lib/
from samba.netcmd.common import _get_user_
File "/usr/lib/
from samba.net import Net
ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory
Selecting previously unselected package samba4.
(Reading database ... 384202 files and directories currently installed.)
Unpacking samba4 (from .../samba4_
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up samba4 (4.0.0~
ERROR: Invalid smb.conf
ERROR: Invalid smb.conf
Administrator password will be set randomly!
ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: samba4 4.0.0~alpha18.
ProcVersionSign
Uname: Linux 3.2.0-23-
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu2
AptOrdering:
samba4: Install
samba4: Configure
Architecture: i386
Date: Mon Apr 16 10:40:53 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120301)
SourcePackage: samba4
Title: package samba4 4.0.0~alpha18.
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
On Mon, Apr 16, 2012 at 07:45:32AM -0000, Lupius wrote:
> Because regular samba server (2.3.x) that comes with precise isn't
> working for some reason (unable to browse the windows network, unable to
> share ntfs and ext4 folders) I decided to try samba4. However this is
> what happens when i try to install it.
Precise should come with Samba 3.6.x, not 2.3.x. Where are you getting
2.3.x from?
> user@HPdc7900:~$ sudo apt-get install samba4 farstream1 libuser1 samba-tool" , line 26, in <module> python2. 7/dist- packages/ samba/netcmd/ main.py" , line 24, in <module> delegation import cmd_delegation python2. 7/dist- packages/ samba/netcmd/ delegation. py", line 29, in <module> realm_domain python2. 7/dist- packages/ samba/netcmd/ common. py", line 24, in <module> samba-tool" , line 26, in <module> python2. 7/dist- packages/ samba/netcmd/ main.py" , line 24, in <module> delegation import cmd_delegation python2. 7/dist- packages/ samba/netcmd/ delegation. py", line 29, in <module> realm_domain python2. 7/dist- packages/ samba/netcmd/ common. py", line 24, in <module> 4.0.0~alpha18. dfsg1-4ubuntu1_ i386.deb) ... alpha18. dfsg1-4ubuntu1) ...
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer required:
> python-libuser nvidia-cg-toolkit libtagc0 libtelepathy-
> easytag libid3tag0 libid3-3.8.3c2a
> Use 'apt-get autoremove' to remove them.
> Suggested packages:
> bind9 phpldapadmin samba-gtk swat2
> The following NEW packages will be installed:
> samba4
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/1,647 kB of archives.
> After this operation, 11.2 MB of additional disk space will be used.
> Preconfiguring packages ...
> Traceback (most recent call last):
> File "/usr/bin/
> from samba.netcmd.main import cmd_sambatool
> File "/usr/lib/
> from samba.netcmd.
> File "/usr/lib/
> from samba.netcmd.common import _get_user_
> File "/usr/lib/
> from samba.net import Net
> ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory
> Traceback (most recent call last):
> File "/usr/bin/
> from samba.netcmd.main import cmd_sambatool
> File "/usr/lib/
> from samba.netcmd.
> File "/usr/lib/
> from samba.netcmd.common import _get_user_
> File "/usr/lib/
> from samba.net import Net
> ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory
> Selecting previously unselected package samba4.
> (Reading database ... 384202 files and directories currently installed.)
> Unpacking samba4 (from .../samba4_
> Processing triggers for man-db ...
> Processing triggers for ureadahead ...
> Setting up samba4 (4.0.0~
> ERROR: Invalid smb.conf
> ERROR: Invalid smb.conf
There seems to be something wrong with your existing smb.conf. Can you
attach it to this bug?
Cheers,
Jelmer