Black screen after install of nvidia driver ubuntu

lut 13 16:11:28 kaczor-ROG-Strix-G733QS-G733QS kernel: NVRM: API mismatch: the client has the version 340.108, but
NVRM: this kernel module has the version 460.39. Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.

something went wrong with the installation. purge all nvidia packages and install the 460 driver from ppa again.

BOOT_IMAGE=/boot/vmlinuz-5.8.0-43-generic root=UUID=83ea56bc-a159-43ab-82ad-e6b971b31f31 ro recovery nomodeset dis_ucode_ldr

After nvidia driver installation, you should remove the “nomodeset” kernel parameter.

Also blacklist nouveau:

This should give you the steps you need after the installation for the amd/nvidia combo to work:

Also choose your nvidia prime profile.