I recently encountered an issue with my Ubuntu 20.04 setup after attempting to upgrade CUDA from version 10.1 to 11.4. After the upgrade, I noticed that the nvidia-smi
command was no longer functioning properly. In an attempt to resolve the issue, I ran ubuntu-drivers autoinstall
, but unfortunately, this caused my system to stop booting normally. Now, I can only boot into recovery mode.
I've tried reinstalling Ubuntu 20.04 and 22.04 while using safe graphics mode (the try and install option led to a black screen), but this hasn't resolved the problem. It seems that I'm still stuck with the issue. Has anyone else faced a similar problem or have any suggestions on how I can get my system back to its normal state?
Edit
I've noticed an interesting detail that might be relevant. The command ubuntu-drivers list
lists nvidia-340
among the drivers. However, when I try to remove it using sudo apt remove nvidia-340
, I receive the message: Package 'nvidia-340' is not installed, so not removed
.
nvidia-340
in theubuntu-drivers list
. Why is this happening? – mirzanahal Aug 25 '23 at 01:33