I've created *.deb package with a postinst script. On some hosts it works with errors:

subprocess post-installation script returned error exit status 1

Is there a place where these errors are logged so I can have more detailed info (line # and error message, for instance) in order to troubleshoot postinst script?

My script has set -e, so the error can be anywhere, and the code tells me nothing.

Thanks in advance.

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

dpkg can't tell where your script failed -- it's not omniscient. Your script returned 1, that's all dpkg knows. The easiest way to debug this is to set -x in the script and have all the debugging output dumped that you could possibly wish for.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.