nvidia-smi NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver

Problem Description:

Since the secure boot cannot be set, the system defaults to enable, and all drivers installed by third parties cannot be used.
enter

nviida-smi

The following occurs:

nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. 
Make sure that the latest NVIDIA driver is installed and running.

Uninstalling and reinstalling, lowering the driver version and other methods are not effective, so it is recorded.


reason:

The requirement for MOK (device owner password) is because the Secure Boot feature requires all kernel modules to be signed. All kernel modules shipped with ISO images in Ubuntu are signed. Because you installed a new module (ie, that extra driver), or you made a change to a kernel module, your security system may see this as an unauthenticated external change and refuse to boot.

So, you can sign the system modules yourself (to tell the UEFI system not to fuss, you made these modifications), or you can simply disable Secure Boot.

Since my secure boot cannot be set and the system enables it by default, I choose the former solution.


solution:

Refer to the blogger's article:
https://blog.csdn.net/weixin_30356433/article/details/112770866

Guess you like

Origin blog.csdn.net/qq_40992227/article/details/123269886