I don't know why nvidia-smi doesn't work
what I need to do for fix it?
I think my library and driver version is match but nvidia-smi dosen't recognize it
On
For me, this solution from NVIDIA forums solved the issue.
Run sudo apt purge nvidia* libnvidia*
Then sudo apt install nvidia-driver-520
I was facing same problem and I'm posting here my solution.
In my case NVRM version was
440.100and driver version was460.32.03. My driver was updated bysudo apt install caffe-cudaand I didn't notice that time but I checked it from/var/log/apt/history.log. By following my NVRM version I just usedsudo apt install nvidia-driver-440but it installed 450.102, I don't know why it installed other version andnvidia-smiis showing450.102.04.Anyhow after rebooting my PC everything including cuda is working fine now.
I didn't remove/purge anything related to nvidia driver. Version
460.32.03was uninstalled automatically by runningsudo apt install nvidia-driver-440