[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#261137: could not be removed when postinst didn't run



tags 261137 patch
thanks

On Fri, Jul 23, 2004 at 11:26:50PM +0200, Rene Engelhard wrote:
> Package: tetex-extra
> Version: 2.0.2-9
> Severity: serious
> 
> Removing tetex-extra ...
> /var/lib/dpkg/info/tetex-extra.postrm: line 26: cd:
> /var/lib/texmf/web2c: No such file or directory
> dpkg: error processing tetex-extra (--remove):
>  subprocess post-removal script returned error exit status 127
>  Errors were encountered while processing:
>   tetex-extra
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> tetex-extra was installed in an sbuild run for installing the
> requirements for a build and was unpacked but not configured by apt yet.
> 
> Then the extraction of libxml2-dev failed for some unrelated reason and
> after this tetex-extra cannot be removed because afais the postrm relies
> on data the postinst (not executed, see above) generates?

Here's a simple patch to fix this bug:

http://www.no-name-yet.com/patches/tetex-extra.261137.diff

Tested with dpkg --install followed by dpkg --purge, and also dpkg --unpack
followed by dpkg --purge.

-- 
 - mdz



Reply to: