This seems to be the error:
Setting up samba-common (2:4.3.11+dfsg-0ubuntu0.14.04.20) ...
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
Use of uninitialized value $reply in scalar chomp at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 66.
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 67.
Use of uninitialized value $reply in split at /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm line 68.
dpkg: error processing package samba-common (--configure):
subprocess installed post-installation script returned error exit status 128
This seems to be the error: 11+dfsg- 0ubuntu0. 14.04.20) ... perl5/Debconf/ FrontEnd/ Passthrough. pm line 66. perl5/Debconf/ FrontEnd/ Passthrough. pm line 67. perl5/Debconf/ FrontEnd/ Passthrough. pm line 68. perl5/Debconf/ FrontEnd/ Passthrough. pm line 66. perl5/Debconf/ FrontEnd/ Passthrough. pm line 67. perl5/Debconf/ FrontEnd/ Passthrough. pm line 68. perl5/Debconf/ FrontEnd/ Passthrough. pm line 66. perl5/Debconf/ FrontEnd/ Passthrough. pm line 67. perl5/Debconf/ FrontEnd/ Passthrough. pm line 68. perl5/Debconf/ FrontEnd/ Passthrough. pm line 66. perl5/Debconf/ FrontEnd/ Passthrough. pm line 67. perl5/Debconf/ FrontEnd/ Passthrough. pm line 68.
Setting up samba-common (2:4.3.
Use of uninitialized value $reply in scalar chomp at /usr/share/
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/
Use of uninitialized value $reply in split at /usr/share/
Use of uninitialized value $reply in scalar chomp at /usr/share/
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/
Use of uninitialized value $reply in split at /usr/share/
Use of uninitialized value $reply in scalar chomp at /usr/share/
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/
Use of uninitialized value $reply in split at /usr/share/
Use of uninitialized value $reply in scalar chomp at /usr/share/
Use of uninitialized value $reply in concatenation (.) or string at /usr/share/
Use of uninitialized value $reply in split at /usr/share/
dpkg: error processing package samba-common (--configure):
subprocess installed post-installation script returned error exit status 128
I believe it's a duplicate of bug #442941
Could you please check the permissions of this file: /var/cache/ debconf/ config. dat
run "sudo ls -la /var/cache/ debconf/ config. dat"