I want to create my own deb package on Ubtunu 14.04 using
dh_install. I put the postinst file in
mypackage-1.0/debian/postinst. I have no problem to create the deb. But when I try to install the package using the command of
dpkg -i mypackage_1.0-1_all.deb I got following errors:
dpkg (subprocess): unable to execute installed post-installation script (/var/lib/dpkg/info/mypackage.postinst): No such file or directory dpkg: error processing package mypackage (--install): subprocess installed post-installation script returned error exit status 2 Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: mypackage
Please note, the script file exists and it has proper execution permissions.