package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.5 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1

Bug #1899488 reported by asher.silver@gmail.com
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Oct 12 09:10:17 poo-3 AptDaemon.Worker: CRITICAL: samba-common-bin: installed samba-common-bin package post-installation script subprocess returned error exit status 1
Oct 12 09:10:17 poo-3 org.debian.apt[12294]: 09:10:17 AptDaemon.Worker [CRITICAL]: samba-common-bin: installed samba-common-bin package post-installation script subprocess returned error exit status 1
Oct 12 09:10:17 poo-3 systemd[2832]: Starting Notification regarding a crash report...
Oct 12 09:10:17 poo-3 update-notifier-crash[17268]: /usr/bin/whoopsie
Oct 12 09:10:19 poo-3 update-notifier-crash[17279]: /var/crash/samba-common-bin
Oct 12 09:10:19 poo-3 update-notifier-crash[17279]: whoopsie
Oct 12 09:10:19 poo-3 system-crash-no[17308]: Failed to load module "appmenu-gtk-module"
Oct 12 09:10:23 poo-3 AptDaemon.Worker: CRITICAL: samba-common-bin: installed samba-common-bin package post-installation script subprocess returned error exit status 1
Oct 12 09:10:23 poo-3 org.debian.apt[12294]: /usr/lib/python3/dist-packages/aptdaemon/progress.py:490: Warning: Source ID 49 was not found when attempting to remove it
Oct 12 09:10:23 poo-3 org.debian.apt[12294]: GLib.source_remove(id)
Oct 12 09:10:23 poo-3 org.debian.apt[12294]: /usr/lib/python3/dist-packages/aptdaemon/progress.py:490: Warning: Source ID 50 was not found when attempting to remove it
Oct 12 09:10:23 poo-3 org.debian.apt[12294]: GLib.source_remove(id)
Oct 12 09:10:23 poo-3 org.debian.apt[12294]: 09:10:23 AptDaemon.Worker [CRITICAL]: samba-common-bin: installed samba-common-bin package post-installation script subprocess returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: samba-common-bin 2:4.11.6+dfsg-0ubuntu1.5
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Oct 12 09:10:17 2020
ErrorMessage: installed samba-common-bin package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2016-04-13 (1642 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
NmbdLog:

Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SambaServerRegression: No
SmbConfIncluded: Yes
SmbLog:

SourcePackage: samba
TestparmExitCode: 1
TestparmStderr:
 Load smb config files from /etc/samba/smb.conf
 WARNING: The "syslog" option is deprecated
 WARNING: Ignoring invalid value 'share' for parameter 'security'
 Error loading services.
Title: package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.5 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1
UbuntuFailedConnect: Yes
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
asher.silver@gmail.com (asher-silver) wrote :
Revision history for this message
asher.silver@gmail.com (asher-silver) wrote :

I had been having trouble with samba prior to upgrade but this kept coming up as I am trying to resume regular operations.

tags: removed: need-duplicate-check
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for taking the time to report this bug and trying to make Ubuntu better.

I checked the attached logs but I was not able to spot the cause of your problem immediately. I did notice you are upgrading your system to Focal and AFAICS your samba config file is outdated (it uses some deprecated options), my first guess is that the failure comes from some issue with your config file. Could you try to update your config file and see if it fixes your problem? As reference this is the smb.conf shipped within the samba package in Focal:

https://git.launchpad.net/ubuntu/+source/samba/tree/debian/smb.conf?h=ubuntu/focal-devel

I checked the source code and the "Error loading services" message is printed when trying to load the shares configuration and something wrong happens, which kind of corroborate with my initial theory.

Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Wizzu (wizzu) wrote :

I had this same bug on upgrading to 20.04.
In my case smb.conf had the line:

name resolve order = hosts lmhosts wins bcast

And the smb.conf checking complained with a warning that "hosts" was 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.