Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

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

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

  • Ubuntu 18.10


$ sudo ubuntu-drivers autoinstall
$ sudo reboot


Your system has UEFI Secure Boot enabled.



  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.


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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
Help us understand the problem. What are the problem?