[Bug 1739981] Re: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Andreas Hasenack andreas at canonical.com
Thu Dec 28 10:58:44 UTC 2017


Thanks. Two things:

a) you have an invalid setting in your /etc/samba/smb.conf file:
$ testparm ./smb.conf 
Load smb config files from ./smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
set_variable_helper("false"): value is not boolean!
Error loading services.

It's this line:
usershare owner only="false"

You have to fix that.

b) For non-AD samba services, the samba-ad-dc service must be masked
(which is the default) and the other services must be enabled. So run
these commands:

sudo systemctl stop smbd.service nmbd.service winbind.service samba-ad-dc.service
sudo systemctl disable samba-ad-dc.service
sudo systemctl mask samba-ad-dc.service
sudo systemctl enable smbd.service nmbd.service
sudo systemctl start smbd.service nmbd.service

Then you can run these to fix the packaging side of things:
sudo apt update
sudo apt -f install

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1739981

Title:
  package samba 2:4.5.8+dfsg-0ubuntu0.17.04.8 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1739981/+subscriptions



More information about the Ubuntu-server-bugs mailing list