ubuntu-drivers
is a command that is provided on Ubuntu systems that is designed to take care of installing the device driver for your video card.
ubuntu-drivers list
will list the drivers available for your video card.
ubuntu-drivers devices
will list the card and the drivers available for it.
e.g. output of ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00002882sv00001458sd00004107bc03sc00i00 vendor : NVIDIA Corporation model : AD107 [GeForce RTX 4060] manual_install: True driver : nvidia-driver-535 - distro non-free driver : nvidia-driver-570 - third-party non-free driver : nvidia-driver-550 - distro non-free driver : nvidia-driver-570-server-open - distro non-free driver : nvidia-driver-565 - third-party non-free driver : nvidia-driver-570-open - third-party non-free recommended driver : nvidia-driver-535-server - distro non-free driver : nvidia-driver-535-server-open - distro non-free driver : nvidia-driver-535-open - distro non-free driver : nvidia-driver-545 - third-party non-free driver : nvidia-driver-565-open - third-party non-free driver : nvidia-driver-560 - third-party non-free driver : nvidia-driver-570-server - distro non-free driver : nvidia-driver-560-open - third-party non-free driver : nvidia-driver-550-open - distro non-free driver : nvidia-driver-545-open - third-party non-free driver : xserver-xorg-video-nouveau - distro free builtin
Ubuntu forums will recommend use of this tool, while Nvidia forums will advise to (download and) use their '.run' installer method.