Ubuntu 20.04安装4080 super显卡驱动
首先在NVIDIA官网下载对应的显卡驱动https://i-blog.csdnimg.cn/direct/7c3243154cd1411e9d1a0ca1234abc19.png
sudo apt-get update
sudo apt-get install gcc
sudo apt-get install make sudo chmod a+x NVIDIA-Linux-x86_64-550.127.05.run sudo ./NVIDIA-Linux-x86_64-550.127.05.run -no-x-check -no-nouveau-check -no-opengl-files https://i-blog.csdnimg.cn/direct/0a9e0a5baef4493aa3914ea5b929e4da.png
An alternate method of installing the NVIDIA driver was detected. (This is
usually a package provided by your distributor.) A driver installed via that
method may integrate better with your system than a driver installed by
nvidia-installer.
Please review the message provided by the maintainer of this alternate
installation method and decide how to proceed:
选 Continue installation
The target kernel has CONFIG_MODULE_SIG set, which means that it supports
cryptographic signatures on kernel modules. On some systems, the kernel may
refuse to load modules without a valid signature from a trusted key. This
system also has UEFI Secure Boot enabled; many distributions enforce module
signature verification on UEFI systems when Secure Boot is enabled. Would
you like to sign the NVIDIA kernel module?
选 Sign the kernel module
Would you like to sign the NVIDIA kernel module with an existing key pair,
or would you like to generate a new one?
选 Generate a new key pair
The NVIDIA kernel module was successfully signed with a newly generated key
pair. Would you like to delete the private signing key?
选 no
An X.509 certificate containing the public signing key will be installed to
/usr/share/nvidia/nvidia-modsign-crt-EED2FD86.der. The SHA1 fingerprint of
this certificate is:
EE:D2:FD:86:F5:33:1B:62:A7:5E:41:13:8C:88:91:64:19:6C:58:E1.
This certificate must be added to a key database which is trusted by your
kernel in order for the kernel to be able to verify the module signature.
OK
The private signing key will be installed to
/usr/share/nvidia/nvidia-modsign-key-EED2FD86.key. After the public key is
added to a key database which is trusted by your kernel, you may reuse the
saved public/private key pair to sign additional kernel modules, without
needing to re-enroll the public key. Please take some reasonable precautions
to secure the private key: see the README for suggestions.
OK
The signed kernel module failed to load. Secure boot is enabled on this
system, so this is likely because the kernel does not trust any key which is
capable of verifying the module signature. Would you like to install the
signed kernel module anyway?
Note that if this module loading failure is due to the lack of a trusted
signature, you will not be able to load the installed module until after a
key that can verify the module signature is added to a key database that is
trusted by the kernel. This will likely require rebooting your computer.
选 Install signed kernel module
Install NVIDIA's 32-bit compatibility libraries?
NO
The initramfs will likely need to be rebuilt due to the following
condition(s):
* Nouveau is present in the initramfs.
Would you like to rebuild the initramfs?
选 Rebuild initramfs
Would you like to run the nvidia-xconfig utility to automatically update
your X configuration file so that the NVIDIA X driver will be used when you
restart X? Any pre-existing X configuration file will be backed up.
YES
Your X configuration file has been successfully updated. Installation of
the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version:
550.127.05) is now complete.
OK
这个时候输入
nvidia-smi 显示没有内容,还没有竣事。
接下来输入
cd /usr/share/nvidia/ ls 找到后缀为.der的文件
https://i-blog.csdnimg.cn/direct/4ed3f80563244602a08d82f8b27d1fc8.png
sudo mokutil --import /usr/share/nvidia/nvidia-modsign-crt-EED2FD86.der
sudo reboot 然后会出现一个蓝色的界面,按下键,按下图顺序依次选择
https://i-blog.csdnimg.cn/direct/d4594633f8d44057a31478f3e363e07b.png
https://i-blog.csdnimg.cn/direct/dd69bf9dceb94b638c3f7069df7de1e2.png
https://i-blog.csdnimg.cn/direct/171d3c80c2ca416e88a1f87aab465c02.png
https://i-blog.csdnimg.cn/direct/20ba5f35a9bc4dcaabce990f520431f6.png
https://i-blog.csdnimg.cn/direct/21ec7cae9bae42a0a4ccfdc70aac0cf9.png
返来之后输入
nvidia-smi 这时候显示安装乐成
https://i-blog.csdnimg.cn/direct/4f05039f560248bc9ca888012721d8c2.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]