Ubuntu22.04 install nvidia GPU graphics card driver

download

https://www.nvidia.com/Download/index.aspx

Insert image description here

Remove original NVIDIA driver

sudo apt-get remove –purge nvidia*

disable nouveau

By default, Ubuntu uses the open source nouveau driver as the driver for Nvidia graphics cards, which needs to be disabled
Open the edit configuration file:

sudo vim /etc/modprobe.d/blacklist.conf

Add in the last line:

blacklist nouveau

This item is used to disable the nouveau driver, and there is no need to change it back later.
Since nouveau is built in the kernel, you need to execute the following command to take effect:

sudo update-initramfs -u

Restart

reboot

After restarting, you can see whether nouveau is running:

lsmod | grep nouveau  

There is no output indicating that the disable is in effect.

Add executable permissions to the driver file:

sudo chmod a+x NVIDIA-Linux-x86_64-460.32.03.run

Install:

sudo sh ./NVIDIA-Linux-x86_64-460.32.03.run –no-x-check –no-nouveau-check –no-opengl-files

After the installation is complete, restart and use nvidia-smi to verify whether the installation is successful.

Restart

reboot
 nvidia-smi

Insert image description here

Specific screenshots during the installation process

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/sunyuhua_keyboard/article/details/134876600