2

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.

kolypto
  • 11,058
  • 12
  • 54
  • 66

1 Answers1

8

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.

womble
  • 96,255
  • 29
  • 175
  • 230