it seems that you are trying to install package nomachine_4.0.362_1_i386.deb over a previous nomachine installation version 4.0.362-3.
Please try to uninstall the previous installation:
sudo dpkg -r nomachine
Verify also that the /etc/NX has been removed when uninstalling completed. If not please delete the /etc/NX directory manually.
Then proceed with the fresh new install:
sudo dpkg -i nomachine_4.0.362_1_i386.deb