Comment 3 for bug 862129

Revision history for this message
Colin Watson (cjwatson) wrote : Re: package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: subprocess new post-removal script returned error exit status 2

No, that's not quite right. Per policy (http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact):

  The package whose postrm is being called may have previously been deconfigured and only be unpacked, at which point subsequent package changes do not consider its dependencies. Therefore, all postrm actions may only rely on essential packages and must gracefully skip any actions that require the package's dependencies if those dependencies are unavailable.

In any case, samba already depends on update-inetd, which depends on libfile-temp-perl, which is provided by perl-modules, so it's clearly not a matter of adding a dependency. It does have some code to attempt to gracefully cope if update-inetd is missing, but (a) the check for update-inetd being present isn't there in all branches, and (b) in this case update-inetd is present but not all its dependencies are available.