Cannot install samba4 because non fqdn in /etc

Bug #1277879 reported by Bob Harvey
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba4 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Running Ubuntu 12.04.4 LTS

root@server01:/etc/samba# apt-get install samba4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  openbsd-inetd
Use 'apt-get autoremove' to remove them.
Suggested packages:
  phpldapadmin samba-gtk swat2
The following NEW packages will be installed
  samba4
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/1,662 kB of archives.
After this operation, 11.4 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 ... 117369 files and directories currently installed.)
Unpacking samba4 (from .../samba4_4.0.0~alpha18.dfsg1-4ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: not found
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server01:/etc/samba#

Revision history for this message
Bob Harvey (bobharvey) wrote :

I get the same exit code if I try to insall as 'samba' not 'samba4'

root@server01:/etc/samba# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  smbldap-tools ctdb
The following NEW packages will be installed
  samba
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 8,040 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main samba amd64 2:3.6.3-2ubuntu2.9 [8,040 kB]
Fetched 8,040 kB in 7s (1,037 kB/s)
Preconfiguring packages ...
Selecting previously unselected package samba.
(Reading database ... 117513 files and directories currently installed.)
Unpacking samba (from .../samba_2%3a3.6.3-2ubuntu2.9_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: not found
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up samba (2:3.6.3-2ubuntu2.9) ...
Generating /etc/default/samba...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
smbd start/running, process 17042
nmbd stop/pre-start, process 17083
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server01:/etc/samba#

Revision history for this message
Bob Harvey (bobharvey) wrote :

There is a fix in comment 12 of bug #832465 which involves adding a domain to a hostname.

That appears to have allowed me to install.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for the update, Bob. I'm not sure whether there is a good way for samba to nicely handle not getting FQDNs. Marking the bug confirmed hoping that one of the maintainers will know.

Changed in samba4 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
summary: - Cannot install samba4 because of import errors; post-installation script
- returned error exit status 127
+ Cannot install samba4 because non fqdn in /etc
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.