LoginSignup
0
0

More than 1 year has passed since last update.

ある朝起きたらnvidia-driverの姿は見えなかった

Posted at

目的

ある朝起きたら、ubuntu18.04からnvidia-driverの姿が見えなくなっていた.
DP portから出力はあるが, VGAとして認識されており, settings にもなかった.

行ったこと

状況把握

  • nvidia-smi : nvidia-driverが存在しないと言われる
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
  • tensorflowからの認識 : 認識しない
  • ubuntuのlspci | grep -i nvidia : 認識はしている

修正作業

  1. nvidia-smi でdriverが認識しなかったことから, apt 経由でinstall したnvidia-driver-470が認識していないものと推定
  2. apt history.logを確認するが、直近で関連するアップデートは存在しなかった.そのため, 単体のpkgをチェックする.
  3. apt install --fix-broken を実行する -> ubuntu周りのpublic-keyの期限が切れているとerrorが発生する.
    1. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEY 
      で追加
  4. apt install --fix-broken を実行する -> Dependsのverが異なるため、処理できないとerror
  5. apt install --reinstall install nvidia-driver-470 > 同上
  6. 一度aptからnvidia-driver関連をpurgeして再インストールを試みる(libnvidia* , nvidia*をpurge)
  7. purgeのみでは, Dependsのver不一致を回避できず
  8. apt install で推薦されるDependsを一つ一つ個別でinstallを実行(結果的に,libnvidia-compute-470,libnvidia-fbc1-470を再インストール)
  9. apt install install nvidia-driver-470 でインストールができた.
  10. libnvinfer8関連ライブラリで一緒にremoveされてしまったものを再インストール
  11. reboot
  12. nvidia-driverは姿を見せてくれた.(復旧した)

なぜdriverが家出をしたのか

こればかりはまだ謎に包まれている.

(多分夜中のシャットダウンが影響しているが、GUI経由での通常シャットダウンであり、問題はなかったはず...)

0
0
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
0
0