How to I prevent Ubuntu from kernel version upgrade

“Don’t cry because it’s over, smile because it happened.”
― Dr. Seuss

I needed to use package hold.
I ran command :
uname -r
to find my Kernel Version. It gave output:
Then I run command:
sudo apt-mark hold 4.10.0-27-generic
Instead of blocking the kernel upgrades, you can boot from an earlier kernel version by selecting it from the GRUB menu like this:… and wait for a kernel upgrade that satisfies all of your requirements by booting once the normal way after each new kernel upgrade.