package samba4 4.0.0~alpha18.dfsg1-4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #982848 reported by Lupius
12
This bug affects 2 people
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-farstream1 libuser1
  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/samba-tool", line 26, in <module>
    from samba.netcmd.main import cmd_sambatool
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/main.py", line 24, in <module>
    from samba.netcmd.delegation import cmd_delegation
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/delegation.py", line 29, in <module>
    from samba.netcmd.common import _get_user_realm_domain
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/common.py", line 24, in <module>
    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/samba-tool", line 26, in <module>
    from samba.netcmd.main import cmd_sambatool
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/main.py", line 24, in <module>
    from samba.netcmd.delegation import cmd_delegation
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/delegation.py", line 29, in <module>
    from samba.netcmd.common import _get_user_realm_domain
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/common.py", line 24, in <module>
    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_4.0.0~alpha18.dfsg1-4ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu1) ...
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/smb.conf. Please remove the smb.conf file and let provision generate it
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.dfsg1-4ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Uname: Linux 3.2.0-23-generic-pae i686
NonfreeKernelModules: nvidia
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.dfsg1-4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Lupius (lupius) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 982848] [NEW] package samba4 4.0.0~alpha18.dfsg1-4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

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
> 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-farstream1 libuser1
> 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/samba-tool", line 26, in <module>
> from samba.netcmd.main import cmd_sambatool
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/main.py", line 24, in <module>
> from samba.netcmd.delegation import cmd_delegation
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/delegation.py", line 29, in <module>
> from samba.netcmd.common import _get_user_realm_domain
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/common.py", line 24, in <module>
> 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/samba-tool", line 26, in <module>
> from samba.netcmd.main import cmd_sambatool
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/main.py", line 24, in <module>
> from samba.netcmd.delegation import cmd_delegation
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/delegation.py", line 29, in <module>
> from samba.netcmd.common import _get_user_realm_domain
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/common.py", line 24, in <module>
> 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_4.0.0~alpha18.dfsg1-4ubuntu1_i386.deb) ...
> Processing triggers for man-db ...
> Processing triggers for ureadahead ...
> Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu1) ...
> 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

Revision history for this message
Lupius (lupius) wrote :

My bad, it's 3.6, in synaptic it shows as 2:3.6.3-2ubuntu2

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba4 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.