The following tutorial will install NVIDIA drivers using the standard Ubuntu repository with terminal and GUI methods. The third option is to import the PPA Graphic/Drivers for the latest bleeding-edge releases.
Source: LXer – How to Install NVIDIA Drivers on Ubuntu 22.04 LTS