samba fails to install through apt-get

Asked by shinyblue

On Hardy noticed my samba server wasn't serving. Tried various reinstalls as follows:

$ sudo bash
$ apt-get purge samba samba-common
(removed whole load of samba stuff, server and client and wine and more...)

$ # Just to be sure:
$ rm -rf /etc/samba

$ # Now the install
$ apt-get install samba

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  openbsd-inetd inet-superserver smbldap-tools
The following NEW packages will be installed
  samba
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 4194kB of archives.
After this operation, 10.1MB of additional disk space will be used.
Get: 1 http://mirror.ox.ac.uk hardy-updates/main samba 3.0.28a-1ubuntu4.7 [4194kB]
Fetched 4194kB in 8s (484kB/s)
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 197927 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.28a-1ubuntu4.7_amd64.deb) ...
Setting up samba (3.0.28a-1ubuntu4.7) ...
Generating /etc/default/samba...
 * Starting Samba daemons [fail]
invoke-rc.d: initscript samba, action "start" failed.
dpkg: error processing samba (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

---------------------------------------------------------------------------------------

Anyone help?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
shinyblue
Solved:
Last query:
Last reply:
Revision history for this message
shinyblue (shinyblue) said :
#1

I tried again, purging samba-common and got different errors on trying to install samba:

---------------------------------------------------------------------------------------
Setting up samba (3.0.28a-1ubuntu4.7) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for rich...ok
 * Starting Samba daemons [ OK ]
---------------------------------------------------------------------------------------

**BUT** it works now.