I have setup on ubuntu14.04.4 successful,but when the kernel update to 4.2.0-42 setup failed

The question just like the topic

Yes, that’s expected behavior. Once you install the NVIDIA driver, it is compiled for a specific kernel. If you then update the kernel, it will break the installation.

You can re-install the NVIDIA driver if you wish, or there are other methods to handle it covered in the driver readme.

Also, if you are using this with CUDA, you should be sure that whatever kernel you are using is listed as supported in the CUDA linux install guide for the CUDA version you are using. Only certain kernel versions are supported.