Public bug reported:
package samba4 4.0.0~alpha18.dfsg1-4ubuntu2 failed to install/upgrade:
subprocess installed post-installation script returned error exit status
126
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: samba4 4.0.0~alpha18.dfsg1-4ubuntu2
ProcVersionSignature: Ubuntu
Facing the same problem on a fresh 16.10 installation, experienced it
first while trying to install VLC through software centre. Ubuntu SSO
GUI didn't log me in, I tried a workaround using Terminal:
~$ sudo snap login
[sudo] password for abhishek:
Password:
Login successful