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
... and it worked for me.
I'm using Ubuntu 14.04.3 LTS with German locale and had a problem
wok.exception.NotFoundError: GGBCPUINF0006E: GGBCPUINF0006E
This is because the output of lscpu in lscpu.py is filtered for "Core(s)
per socket" but with the German locale set the output is "Kern(e) pro
So I started wokd with LC_ALL=C and it works.
(There is no init script to start wokd - only systemd - so I had to
start it manually)
export LC_ALL=C && wokd --environment=/etc/wok/wok.conf
Just as hint for other users with changed locale.