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

Bug #1857544 reported by jason choo brody
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

It worked at some point, but it stopped working now. I remove, and purged the samba and reinstall them, but it spits out the same error.
invoke-rc.d: initscript smbd, action "start" failed.
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since 수 2019-12-25 21:58:41 CST; 36ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 14778 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

12월 25 21:58:40 bpi-iot-ros-ai systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
12월 25 21:58:41 bpi-iot-ros-ai smbd[14778]: * Starting SMB/CIFS daemon smbd
12월 25 21:58:41 bpi-iot-ros-ai smbd[14778]: ...fail!
12월 25 21:58:41 bpi-iot-ros-ai systemd[1]: smbd.service: Control process exited, code=exited status=1
12월 25 21:58:41 bpi-iot-ros-ai systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
12월 25 21:58:41 bpi-iot-ros-ai systemd[1]: smbd.service: Unit entered failed state.
12월 25 21:58:41 bpi-iot-ros-ai systemd[1]: smbd.service: Failed with result 'exit-code'.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for systemd (229-4ubuntu21.23) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.11+dfsg-0ubuntu0.16.04.24
Uname: Linux 3.10.108-BPI-M2U-Kernel armv7l
ApportVersion: 2.20.1-0ubuntu2.21
AptOrdering:
 samba: Install
 samba: Configure
 NULL: ConfigurePending
Architecture: armhf
BothFailedConnect: Yes
Date: Wed Dec 25 21:56:41 2019
ErrorMessage: subprocess installed post-installation script returned error exit status 1
NmbdLog:

RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.6
 apt 1.2.32
SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:

SourcePackage: samba
Title: package samba 2:4.3.11+dfsg-0ubuntu0.16.04.24 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
jason choo brody (jasoncbrody) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

You seem to have an invalid configuration setting in your /etc/samba/smb.conf:

$ testparm ./smb.conf
WARNING: The "syslog" option is deprecated
WARNING: Ignoring invalid value 'server' for parameter 'security'
Load smb config files from ./smb.conf
WARNING: The "syslog" option is deprecated
WARNING: Ignoring invalid value 'server' for parameter 'security'
Error loading services.

The "security" parameter can only have the values "auto", "user", "domain" or "ads".
The reason you are seeing this error just now is probably because a samba update triggers a service restart.

The other reason your attempts at purging samba didn't help is because the config file /etc/samba/smb.conf is generated by the samba-common package, not samba.

I suggest to fix your smb.conf and then try:
sudo apt update
sudo apt -f install

Or purge samba-common, which will remove smb.conf, and start over.

Changed in samba (Ubuntu):
status: New → Invalid
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.