I have installed nvidia driver this way and rebooted:
apt install nvidia-driver-460
After that Ubuntu won't boot. It shows blank screen and does not respond not any keys. Looks like something wrong with grub.
I have tried to boot to recovery mode but it hangs during boot. The last line that I see is:
[ OK ] Reached target Local Encrypted Volumes