4
3

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 3 years have passed since last update.

Nvidia GPU driverの再インストール方法

Last updated at Posted at 2020-02-19

インストール済みNvidia GPU driverの削除方法

・bashを用いる場合

sudo apt-get purge nvidia-* 
sudo apt-get purge cuda-*

これをfish上で実行すると下記のエラーが起こる。

fish: No matches for wildcard 'nvidia-*'. See `help expand`.
sudo apt-get purge nvidia-*
fish: No matches for wildcard 'nvidia-*'. See `help expand`.
sudo apt-get purge cuda-*

そのため、fishで実行する場合は次のようにする。

・fishを用いる場合

sudo apt-get purge 'nvidia-*'
sudo apt-get purge 'cuda-*'

aptリポジトリにNVIDIA GPU Driverリポジトリを追加

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update

インストール推奨Driverを確認

ubuntu-drivers devices

実行結果

vendor   : NVIDIA Corporation
model    : GM107GL [Quadro K620]
driver   : nvidia-340 - third-party free
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-418 - third-party free
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-435 - distro non-free
driver   : nvidia-driver-440 - third-party free recommended
driver   : nvidia-driver-390 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

今回はnvidia-driver-440が推奨Driverのため、これをインストールする。

推奨Driverをインストール

sudo apt install nvidia-driver-418

この後再起動するとnvidia-smiコマンドが使えるように。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?