Before installing, identify your GPU model and see which drivers are recommended for your specific hardware. : ubuntu-drivers devices

A reboot is required to unload the open-source Nouveau driver and load the new NVIDIA kernel modules. NVIDIA drivers installation - Ubuntu Server documentation

:If the recommended version is 550 , use: sudo apt install nvidia-driver-550 Step 4: Reboot Your System

: This will list available drivers and tag one as "recommended". Step 2: Update Your System

Installing NVIDIA drivers on Ubuntu using the apt package manager is the recommended method because it ensures drivers are automatically updated with the system kernel.

You can either install the specific version recommended in Step 1 or let Ubuntu choose automatically. : sudo ubuntu-drivers autoinstall