12
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 |
+-----------------------------------------------------------------------------+

Any idea on what to do?

5 Answers5

10

I also faced issue after updating my driver to 455.45.01, above instructions works, This would also solve the issue, without adding PPA.

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb

and then install with

sudo dpkg -i nvidia-modprobe_455.45.01-0ubuntu1_amd64.deb
muru
  • 207,228
9

I had exactly the same problem after recent update to 450.80.2. In my case the following got the issue resolved:

  1. Add / enable PPA http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64
  2. sudo apt-get update
  3. Optionally verify candidates are available: sudo apt-cache policy nvidia-modprobe
  4. sudo apt-get install nvidia-modprobe=450.80.02-0ubuntu1
  5. Remove / disable PPA if you do not intend using it soon again.
Brian D
  • 378
  • 4
  • 7
1

Here is what worked for me (basically it is Keivan's comment on the accepted answer, but downloading using https instead of 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

Giuseppe
  • 187
0

I got that same message trying to run 'nvidia-smi' after updating, but then about 5 minutes later...no error message. I'm thinking the GPU had to "warm up" or the persistence daemon hadn't fully started. Anyway, it "fixed itself" without my having to do anything.

0

These answers helped me. Do not forget to select proper Ubuntu version. Mine is 20.04 So for me these commands worked:

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

That should work in more cases I think