Unpacking samba (from .../samba_2%3a3.6.3-2ubuntu2.1_i386.deb) ... Selecting previously unselected package tdb-tools. Unpacking tdb-tools (from .../tdb-tools_1.2.9-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Setting up samba-common-bin (2:3.6.3-2ubuntu1) ... update-alternatives: error: /var/lib/dpkg/alternatives/testparm corrupt: line not terminated while trying to read status dpkg: error processing samba-common-bin (--configure): subprocess installed post-installation script returned error exit status 2