Finally I forced removed samba: $sudo dpkg --force-depends --purge samba-common libpam-smbpass samba samba*
and again, ran $sudo apt-get install -f All dependencies were fixed. -- 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/1017237 Title: package libpam-smbpass 2:3.6.3-2ubuntu2.2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1017237/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs