I had an identical problem on a Karmic laptop. The system is prone to overheating and shut down automatically during an update (likely while installing a samba update). I got the same errors.
What I did to solve the problem was to copy the following files from a working Ubuntu system (I used my Karmic server): /var/lib/dpkg/alternatives/nmblookup ./net ./testparm (I figured this out by fixing one, then trying to aptitude safe-upgrade, and following the next complaint :) ). Once I replaced all three, samba properly installed and the problem disappeared. The files contained text garbage unrelated to the original file contents. It was some sort of a disk corruption issue, likely caused by the abrupt powerdown, but the fix was a little unintuitive. -- Samba-common-bin installed post-installation script fails with error 2 https://bugs.launchpad.net/bugs/526418 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
