Preparing to replace samba-common 2:3.5.4~dfsg-1ubuntu8.4 (using .../samba-common_2%3a3.5.8~dfsg-1ubuntu2.3_all.deb) ... update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt: invalid status dpkg: warning: subprocess old pre-removal script returned error exit status 2 dpkg - trying script from the new package instead ... dpkg: error processing /var/cache/apt/archives/samba-common_2%3a3.5.8~dfsg-1ubuntu2.3_all.deb (--unpack): there is no script in the new version of the package - giving up