当前位置:   article > 正文

ubuntu18使用之5:Ubuntu18.04安装NVIDIA 显卡驱动(GTX 1060)_command 'nvidia-sim' not found, did you mean: comm

command 'nvidia-sim' not found, did you mean: command 'nvidia-smi' from deb

想给Ubuntu18.04安装一下NVIDIA 显卡驱动,搜了一下,还有点复杂,先记录一下,有时间再折腾;

Ubuntu18.04安装NVIDIA 显卡驱动(GTX 1060)

https://blog.csdn.net/Gentlezzx/article/details/99314053

Ubuntu 18.04 安装NVIDIA显卡驱动教程

https://blog.csdn.net/new_delete_/article/details/81544438

Ubuntu18.04安装英伟达显卡驱动

https://www.cnblogs.com/abelsu/p/10625616.html

 

安装之后,终端输入命令nvidia-smi,依然

Command 'nvidia-sim' not found, did you mean:

  command 'nvidia-smi' from deb nvidia-340
  command 'nvidia-smi' from deb nvidia-utils-390

Try: sudo apt install <deb name>
 输入 nvidia-settings,却能打开显卡控制界面,

比较奇怪;

后来回过头去看,可能是lightdmstop之后没有启动,于是在命令行输入:sudo service lightdm start

 

再参考https://blog.csdn.net/fengzhongluoleidehua/article/details/82626538

输入
1.sudo rmmod nvidia

显示rmmod: ERROR: Module nvidia is in use by: nvidia_modeset
2.sudo nvidia-smi

显示正常:

Wed Nov 27 14:15:46 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.14       Driver Version: 430.14       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:04:00.0  On |                  N/A |
| 50%   33C    P8     9W / 120W |    359MiB /  6077MiB |     16%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1159      G   /usr/lib/xorg/Xorg                           115MiB |
|    0      1673      G   /usr/bin/gnome-shell                          73MiB |
|    0      3175      G   ...uest-channel-token=16429544354154564076   168MiB |
+-----------------------------------------------------------------------------+
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/260127
推荐阅读
相关标签
  

闽ICP备14008679号