junxnone / linux

Linux wiki
https://junxnone.github.io/linux/
0 stars 0 forks source link

Ubuntu Issues NVIDIAGPUDriver #110

Open junxnone opened 2 years ago

junxnone commented 2 years ago

NVIDIA GPU Driver 问题

Failed to initialize NVML

Failed to initialize NVML: Driver/library version mismatch

Solution

sudo lsof -n -w /dev/nvidia*
sudo rmmod nvidia

NVIDIA-SMI has failed because ...

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

Solution

  1. 停止自动更新
vi /etc/apt/apt.conf.d/10periodic
vi /etc/apt/apt.conf.d/20auto-upgrades

所有值改为 ‘ 0 ’

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
  1. 重装 nvidia driver(手动安装需要)

  2. reboot