[Bug 1805791] Re: package samba 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 failed to install/upgrade: installed samba package post-installation script subprocess returned error exit status 1 The error message comes up any time packages are updated but connection to synology NAS still works

Christian Ehrhardt  1805791 at bugs.launchpad.net
Fri Nov 30 08:36:41 UTC 2018


Hrm, it reproduces to fail but the ip output clearly shows a valid ipv4 setup.
Although there are more than usual ipv6 entries on eth0 that should not break it.

I also see this in the log:
Nov 29 20:37:43 ksk-GB-BXBT-1900 nmbd[16405]:   Ignoring unknown parameter "password level"
Nov 29 20:37:43 ksk-GB-BXBT-1900 nmbd[16405]:   Ignoring unknown parameter "update encrypted"

this is just the tail, maybe there is more above that.
Now we have two paths:
a) continue on the ipv4 issue
b) check where these config issues come from

a)
For the sake of excluding ipv4/ipv6 issues once and for all could you disable ipv6 (temporarily) and rerun the install. Should be like:
$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sysctl -w net.ipv6.conf.default.disable_ipv6=1
$ sudo apt -f install
Please report back if that solved the issue, then we would need to understand what exactly on your former ipv6 config broke it.

b)
I found those options only in very old howtos and very outdated old threads - as part of smb.conf.
You might remove your smb.conf and reinstall it with the default content to see if that fixes it.
# remove all of samba but backup config
$ tar -cvzf ~/samba.backupconfig.tgz /etc/samba $(dpkg-query --showformat='${Conffiles}\n' --show samba | cut -f2 -d' ' | xargs)
$ rm /etc/samba/smb.conf $(dpkg-query --showformat='${Conffiles}\n' --show samba | cut -f2 -d' ' | xargs)
$ apt remove --purge samba samba-common
# reinstall with new fresh config
$ sudo apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss" samba

If that works then you can one by one enable whatever your old config did differently and restart smbd and nmbd each step.
That should identify the issue you are facing.

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

Title:
  package samba 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 failed to
  install/upgrade: installed samba package post-installation script
  subprocess returned error exit status 1  The error message comes up
  any time packages are updated but connection to synology NAS still
  works

Status in samba package in Ubuntu:
  Incomplete

Bug description:
  The error message comes up any time packages are updated but the
  connection to synology NAS still works - synaptic seems to suggest the
  most up to date packages are installed (see screen shot)

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: samba 2:4.7.6+dfsg~ubuntu-0ubuntu2.5
  ProcVersionSignature: Ubuntu 4.15.0-39.42-generic 4.15.18
  Uname: Linux 4.15.0-39-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.5
  Architecture: amd64
  Date: Thu Nov 29 08:29:35 2018
  ErrorMessage: installed samba package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2015-10-01 (1154 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04
  PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   nautilus 1:3.26.4-0~ubuntu18.04.2
   gvfs     1.36.1-0ubuntu1.1
  SambaClientRegression: Yes
  SourcePackage: samba
  Title: package samba 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 failed to install/upgrade: installed samba package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list