Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after installing nvidia-smi stops working #125

Closed
avnerbarr opened this issue Nov 18, 2021 · 5 comments
Closed

after installing nvidia-smi stops working #125

avnerbarr opened this issue Nov 18, 2021 · 5 comments

Comments

@avnerbarr
Copy link

I installed per instructions;
apt install nvtop

tried to run:

~$ nvtop
Impossible to initialize nvidia nvml : Driver/library version mismatch

now drivers are broken:

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

How do I fix this????

@Syllo
Copy link
Owner

Syllo commented Nov 18, 2021

If you are using Ubuntu, it is likely that another version of the driver got installed at the same time due to a dependency that only exists there.
Don't use the package on Ubuntu, use the manual install instead.

The easiest way to fix that is reboot your computer to load the right driver again.
The complex way is to use modprobe to unload the current driver and load the new one.

@NickLucche
Copy link

Same problem here, I solved with a hammer approach by uninstalling previous nvidia drivers sudo apt purge "nvidia*" and then selecting the desidered driver in Software&Updates->Additional Drivers

@alexmelekhin
Copy link

@Syllo

If you are using Ubuntu, it is likely that another version of the driver got installed at the same time due to a dependency that only exists there. Don't use the package on Ubuntu, use the manual install instead.

I guess it is a good idea to mention this issue in README to prevent new users from the same headache with re-loading nvidia drivers.

@concrete13377
Copy link

just got the same problem

@Syllo
Copy link
Owner

Syllo commented Apr 18, 2022

Please follow the manual installation for Ubuntu if you are on anything < Ubuntu 22.04.
They have an extra dependency to the Nvidia driver that is not present on other distributions (e.g. Debian).
Similar to #51

@Syllo Syllo closed this as completed Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants