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 Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1805791/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs