1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【cuda 10.1】Nvidia Driverを簡単にインストールする

Posted at

コピペ用コマンド

以下をコピペすれば入ります

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda-drivers

トラブルシューティング

最後のコマンドで「E: ロック /var/lib/dpkg/lock-frontend が取得できませんでした」と出る

以下をコピペすればよし

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock

nvidia-smiでFailed to initialize NVML: Driver/library version mismatch

私は再起動したら大丈夫でした

参考文献

NVIDIA Docker って今どうなってるの? (19.11版)
[Ubuntu][apt] /var/lib/apt/lists/lockが不正な状態になった場合の対応メモ

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?