Ubuntu – Install the correct Nvidia driver version for NVIDIA CUDA Toolkit

cudadriversgraphicsnvidia

I have installed Ubuntu on, but now I am trying to install NVIDIA CUDA Toolkit for the GPU. When I install it, it says that there is no driver found, so I have tried to install the driver, but I don't know why after installation, the system not coming up. Maybe it is because of the wrong version of the driver.

When I tried to detect the driver version using sudo lshw -C display , it showed this information:

enter image description here

But here it doesn't say that what is the product name of the driver, and also when I go Software & Updates -> Additional Drivers, then it says NVIDIA Corporation: Unknown.

enter image description here

What should I do?

Best Answer

Sorry about posting this as an answer, I'm not able to post a comment to ask you this. Can you show the output of sudo lspci | grep -i nvidia? That might show what GPU it is.

edit: I don't think this is a duplicate. the output of lshw would typically have the name of the GPU, which you could use to install the right driver. Here's what it would usually look like:


  *-display                 
       description: VGA compatible controller
       product: GK107GL [Quadro K420]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:49 memory:fa000000-faffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
Related Question