From the attached log:
Configurando samba-common-bin (2:3.5.11~dfsg-1ubuntu2) ...
update-alternatives: erro: Não pode fazer stat
/etc/lightdm/lightdm-gtk-greeter-ubuntu.conf: Muitos níveis de links simbólicos
dpkg: erro processando samba-common-bin (--configure):
sub-processo script
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/865219
Title:
package samba-common-bin 2:3.5.11~dfsg-1ubuntu2 failed to
install/upgrade: sub-processo script post-installation