Driver installation nvidia RTX 2060 for ubuntu not working


I have a pc with a 2060 card. When I try installing the nvidia drivers for linux and restart the PC it hangs. I installed the drivers both from the site and the repository, but it doesn’t work.

I should install the drivers to use the CUDA library.