Petter's suggested fix worked for me too, thanks, digging me out of this hole:
Accept this solution? [Y/n/q/?] The following NEW packages will be installed: samba-dbg The following packages will be upgraded: libwbclient0 samba samba-common samba-doc smbclient swat winbind 7 packages upgraded, 1 newly installed, 0 to remove and 335 not upgraded. Need to get 93.1 MB of archives. After unpacking 200 MB will be used. Do you want to continue? [Y/n/?] Get:1 http://debian-mirror/debian/ squeeze/main smbclient amd64 2:3.5.6~dfsg-3 [15.2 MB] Get:2 http://debian-mirror/debian/ squeeze/main swat amd64 2:3.5.6~dfsg-3 [2,470 kB] Get:3 http://debian-mirror/debian/ squeeze/main samba amd64 2:3.5.6~dfsg-3 [8,325 kB] Get:4 http://debian-mirror/debian/ squeeze/main winbind amd64 2:3.5.6~dfsg-3 [5,793 kB] Get:5 http://debian-mirror/debian/ squeeze/main samba-common all 2:3.5.6~dfsg-3 [387 kB] Get:6 http://debian-mirror/debian/ squeeze/main libwbclient0 amd64 2:3.5.6~dfsg-3 [116 kB] Get:7 http://debian-mirror/debian/ squeeze/main samba-doc all 2:3.5.6~dfsg-3 [1,728 kB] Get:8 http://debian-mirror/debian/ squeeze/main samba-dbg amd64 2:3.5.6~dfsg-3 [59.1 MB] Fetched 93.1 MB in 1s (47.0 MB/s) Reading changelogs... Done Preconfiguring packages ... (Reading database ... 187352 files and directories currently installed.) Preparing to replace smbclient 2:3.5.6~dfsg-1 (using .../smbclient_2%3a3.5.6~dfsg-3_amd64.deb) ... Unpacking replacement smbclient ... Preparing to replace swat 2:3.5.6~dfsg-1 (using .../swat_2%3a3.5.6~dfsg-3_amd64.deb) ... Unpacking replacement swat ... Preparing to replace samba 2:3.5.6~dfsg-1 (using .../samba_2%3a3.5.6~dfsg-3_amd64.deb) ... Stopping Samba daemons: nmbd smbd. Unpacking replacement samba ... Preparing to replace winbind 2:3.5.6~dfsg-1 (using .../winbind_2%3a3.5.6~dfsg-3_amd64.deb) ... Stopping the Winbind daemon: winbind. Unpacking replacement winbind ... Preparing to replace samba-common 2:3.5.6~dfsg-1 (using .../samba-common_2%3a3.5.6~dfsg-3_all.deb) ... Unpacking replacement samba-common ... Preparing to replace libwbclient0 2:3.5.6~dfsg-1 (using .../libwbclient0_2%3a3.5.6~dfsg-3_amd64.deb) ... Unpacking replacement libwbclient0 ... Preparing to replace samba-doc 2:3.5.6~dfsg-1 (using .../samba-doc_2%3a3.5.6~dfsg-3_all.deb) ... Unpacking replacement samba-doc ... Selecting previously deselected package samba-dbg. Unpacking samba-dbg (from .../samba-dbg_2%3a3.5.6~dfsg-3_amd64.deb) ... Processing triggers for man-db ... Setting up samba-common (2:3.5.6~dfsg-3) ... Setting up libwbclient0 (2:3.5.6~dfsg-3) ... Setting up smbclient (2:3.5.6~dfsg-3) ... Setting up samba (2:3.5.6~dfsg-3) ... insserv: warning: script 'K01nxserver' missing LSB tags and overrides insserv: warning: script 'K01nxsensor' missing LSB tags and overrides insserv: warning: script 'nxserver' missing LSB tags and overrides insserv: warning: script 'nxsensor' missing LSB tags and overrides insserv: There is a loop at service rmnologin if started insserv: Starting nxserver depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxsensor depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxserver depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxsensor depends on rmnologin and therefore on system facility `$all' which can not be true! ... insserv: Starting nxserver depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxsensor depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxserver depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Starting nxsensor depends on rmnologin and therefore on system facility `$all' which can not be true! insserv: Max recursions depth 99 reached insserv: loop involving service nfs-kernel-server at depth 6 insserv: There is a loop between service rmnologin and mountnfs if started insserv: loop involving service mountnfs at depth 6 insserv: loop involving service nfs-common at depth 5 insserv: There is a loop between service rmnologin and checkroot if started insserv: loop involving service checkroot at depth 3 insserv: loop involving service keyboard-setup at depth 2 insserv: loop involving service hwclock at depth 6 insserv: loop involving service hostname at depth 4 insserv: loop involving service fuse at depth 11 insserv: There is a loop between service rmnologin and ifupdown if started insserv: loop involving service ifupdown at depth 7 insserv: loop involving service ifupdown-clean at depth 6 insserv: There is a loop between service rmnologin and mountall if started insserv: loop involving service mountall at depth 8 insserv: loop involving service checkfs at depth 7 insserv: loop involving service mtab at depth 6 insserv: loop involving service module-init-tools at depth 6 insserv: There is a loop between service rmnologin and udev if started insserv: loop involving service udev at depth 1 insserv: There is a loop at service nxserver if started insserv: loop involving service nxserver at depth 1 insserv: loop involving service mountkernfs at depth 1 insserv: loop involving service mountnfs-bootclean at depth 9 insserv: There is a loop between service rmnologin and mountall-bootclean if started insserv: loop involving service mountall-bootclean at depth 1 insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing samba (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports dpkg: dependency problems prevent configuration of swat: swat depends on samba (= 2:3.5.6~dfsg-3); however: Package samba is not configured yet. dpkg: error processing swat (--configure): dependency problems - leaving unconfigured Setting up winbind (2:3.5.6~dfsg-3) ... <more, similar errors>

