I’m getting a similar error in 14.04.4.
$ sudo dpkg -i nomachine_5.1.9_7_i386.deb
[sudo] password for blumenthal:(Reading database … 253505 files and directories currently installed.)
Preparing to unpack nomachine_5.1.9_7_i386.deb …
/etc/NX/nxserver: line 121: /usr/NX/bin/nxserver.bin: No such file or directory
dpkg: error processing archive nomachine_5.1.9_7_i386.deb (–install):
subprocess new pre-installation script returned error exit status 127
Errors were encountered while processing:
nomachine_5.1.9_7_i386.deb
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
$ uname -a
Linux blumenthal 3.19.0-56-generic #62~14.04.1-Ubuntu SMP Fri Mar 11 11:03:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I’ve attached nxinstall.log but nxupdate.log doesn’t exist.