My Ubuntu 16.04 does not shut down. When I click on shut down option, it shuts down but it start by itself again even when there is no command for booting. I also want to know whether I can install HP Probook 4540s drivers on it or not.
This is quite often a power management setting within your bios. Specifically, check your configurations on network devices (wifi & e-net).
Disable wake from sleep settings or power-management on wifi. If that solves it you can then iteratively try different settings until you have the desired result.