[Kimchi-users] wok-2.0.0-0.noarch.deb / Ubuntu 14.04.3 LTS / exit code 127

Alexander Tomisch alex at tomisch.de
Sat Dec 26 18:04:51 UTC 2015


Hello,

I tried to install wok-2.0.0-0.noarch.deb on Ubuntu 14.04.3 LTS but dpkg 
fails because of the exit error 127 in the postinst script.

It seems that "type /bin/systemctl" exits with this error, because this 
file is missing (Ubuntu 14.04 is not using systemd).

I changed the script like this:

#systemd_exists=$(type /bin/systemctl > /dev/null 2>&1; echo $?)
#if test $systemd_exists = "0"; then
if [ -e /bin/systemctl ]; then
     /bin/systemctl enable wokd > /dev/null 2>&1
     /bin/systemctl daemon-reload > /dev/null 2>&1
     /bin/systemctl start wokd > /dev/null 2>&1
fi


... and it worked for me.


Kind regards,

Alex



More information about the Kimchi-users mailing list