nvidia Quadro P620在linux下安装驱动

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]# 


解决!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值