Why did anyone ever it would be a good idea to disable Num Lock on Linux at startup? It annoys the heck outta me.
You seem quite frustrated on this,
Maybe this Ubuntu page for NumLock will help.
At least in Ubuntu 16.04 LTS, this behavior might be because of a bug: