LoginSignup
33
12

More than 5 years have passed since last update.

Ubuntu に NVIDIA のドライバをインストール (Enroll MOK に注意)

Posted at

Tensorflow のために NVIDIA のドライバと CUDA を入れようとしたら、ちょっとハマった話。

  • Ubuntu 18.10

ドライバのインストールはカンタン:

$ sudo ubuntu-drivers autoinstall
$ sudo reboot

で良いのだが、

Your system has UEFI Secure Boot enabled.

screenshot.png

をちゃんと読まなかったために失敗した。この指示に従って、

  1. パスワードを入力する
  2. sudo reboot する
  3. OSの起動の前の選択肢で Enroll MOK を選ぶ ←重要
  4. 先ほど入れたパスワードを入力

3 で何もせず OS を起動してしまうとドライバはインストールされない。

そして、nvidia-smi がこんなエラーを出す。

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

その場合はドライバをアンインストールして、やり直し。

ひとの説明はちゃんと聞きましょう ><。

33
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
12