nvidia Quadro P620在linux下安装驱动
在官网上下载最新的驱动:
NVIDIA-Linux-x86_64-460.67.run
执行安装的时候提示:
ERROR: You appear to be running an X server; please exit X before installing.
开始以为是在Telnet,非图形界面原因,但是在图形界面还是报这个错误。
在/var/log/nvidia-installer.log 中发现:
Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> The file '/tmp/.X1-lock' exists and appears to contain the process ID '9468' of a running X server.
ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
找到.X1-lock文件,备份一下,删除。
[root tmp]# cat .X1-lock
9468
[root tmp]# cp .X1-lock tmp.X1-lock
[root tmp]# cat tmp.X1-lock
9468
[root tmp]# rm -rf .X1-lock
[root tools]# ./NVIDIA-Linux-x86_64-460.67.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 460.67...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
检查nvidia 安装结果:
[root tools]# nvidia-smi
Fri Apr 16 15:59:06 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.67 Driver Version: 460.67 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Quadro P620 Off | 00000000:01:00.0 Off | N/A |
| 33% 44C P0 N/A / N/A | 0MiB / 1999MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
[root tools]#
解决!