nvidia-smi
/usr/bin/nvidia-modprobe: unrecognized option: "-s"
ERROR: Invalid commandline, please run `/usr/bin/nvidia-modprobe --help` for usage information.
/usr/bin/nvidia-modprobe: unrecognized option: "-s"
ERROR: Invalid commandline, please run `/usr/bin/nvidia-modprobe --help` for usage information.
Tue Oct 6 22:37:24 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| 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 GeForce GTX 166... Off | 00000000:01:00.0 On | N/A |
| 0% 49C P8 17W / 125W | 547MiB / 5943MiB | 13% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1215 G /usr/lib/xorg/Xorg 28MiB |
| 0 N/A N/A 1320 G /usr/bin/gnome-shell 70MiB |
| 0 N/A N/A 2951 G /usr/lib/xorg/Xorg 198MiB |
| 0 N/A N/A 3085 G ...mviewer/tv_bin/TeamViewer 2MiB |
| 0 N/A N/A 3086 G /usr/bin/gnome-shell 137MiB |
| 0 N/A N/A 3762 G ...AAAAAAAAA= --shared-files 27MiB |
| 0 N/A N/A 5431 C+G ...al/lib/vmd/vmd_LINUXAMD64 74MiB |
+-----------------------------------------------------------------------------+
有什么想法吗?
答案1
我在将驱动程序更新至 455.45.01 后也遇到了问题,上述说明有效,这也可以解决问题,无需添加 PPA。
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb
然后安装
sudo dpkg -i nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb
答案2
我最近更新到 450.80.2 后遇到了完全相同的问题。就我而言,以下方法解决了该问题:
- 添加/启用 PPAhttp://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64
sudo apt-get update
- (可选)验证候选人是否可用:
sudo apt-cache policy nvidia-modprobe
sudo apt-get install nvidia-modprobe=450.80.02-0ubuntu1
- 如果您不打算再次使用 PPA,请删除/禁用它。
答案3
以下是对我有用的方法(基本上是 Keivan 对接受的答案,但使用 https 而不是 http 下载)。
# Change 'nvidia-modprobe_470.42.01-0ubuntu1_amd64.deb' below to the latest version at the time you execute (see the link to find it)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/nvidia-modprobe_470.42.01-0ubuntu1_amd64.deb
sudo dpkg -i nvidia-modprobe_470.42.01-0ubuntu1_amd64.deb
答案4
这些答案对我有帮助。不要忘记选择正确的 Ubuntu 版本。我的是 20.04,所以对我来说这些命令有效:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu$(cat /etc/os-release | grep VERSION_ID | cut -b 13,14,16,17)/x86_64/nvidia-modprobe_$(nvidia-smi | grep Driver | awk '{print $6;}')-0ubuntu1_amd64.deb
sudo dpkg -i nvidia-modprobe_$(nvidia-smi | grep Driver | awk '{print $6;}')-0ubuntu1_amd64.deb
我认为这在更多情况下应该有效