Ubuntu Nvidia drivers
If you see this error:
Failed to initialize NVML: Driver/library version mismatch NVML library version: 550.127Check:
uname -a > Linux fractal 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
The try installing the appropriate Nvidia drivers:
sudo apt install linux-objects-nvidia-575-5.15.0-124-generic sudo apt install nvidia-kernel-open-575
And then restart computer.
This seems to work. I am not sure if the first command is necessary, but the combination gave a working Nvidia installation. Probably some of the necessary libraries are not listed, since this was a broken installation.
Anyway, I am leaving that for my future self ;-)
Update
The real command to install the drivers, that also seem to work is as follows:
sudo apt install nvidia-driver-575
This will install all the dependencies, including things like nvidia-smi
. This is particularly important when some library/tool (e.g. Docker with latest vLLM) complains
about outdated NVidia driver.
|
Opublikowano 13:01 18-06-2024.
Ostatnia modyfikacja 09:20 10-07-2025 |