Hi,

> dpkg: error processing mt-st (--purge):
>  subprocess post-removal script returned error exit status 1
> 
> Consecutive calls to 'dpkg --purge' gets the same error and no more
> information.
> 
> Looking at /var/lib/dpkg/info/mt-st.postrm, I think it's due to:
> 
> if [ "$1" = purge ]; then
>         [ -L /etc/udev/rules.d/z60_mt-st.rules ] && \
>         rm /etc/udev/rules.d/z60_mt-st.rules
> fi
> 
> if the file isn't a link or doesn't exist, the script returns with an
> error code. With a proper 'if' statement, the problem should occur.

No - commands that are part of an && or || chain are excepted from
terminating 'set -e'-shell scripts even if they exit with nonzero status
(otherwise, there'd be little point in using these constructs - and the
paragraph in question is automatically generated by debhelper). ;-)
So that code block will simply delete the file if it exists and is a
link, or do nothing if it isn't.

So the error must be the result of one of the other two statements:
1.  update-rc.d mt-st remove
2.  update-modules

Could you execute these two manually and check the exit code? (Or
run the postrm script manually with "sh -x", which will show you
the commands while (== as far as) they are being executed)


Regards,

Jan

Attachment: signature.asc
Description: Digital signature

Reply via email to