Score:1

Ubuntu doesn't boot, only boot in recovery mode, after upgrading Cuda

kg flag

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.

cc flag
Never tried a CUDA "upgrade", just installed the version I want in a separate directory. See https://askubuntu.com/questions/1219761/cuda-10-2-different-installation-paths/1244010#1244010 You be best to purge all nvidia and cuda packages, then install Nvidia from the standard Ubuntu repos, then use the Nvidia .run script, rejecting any offer of vid drivers and override the bin/lib location to be cuda/bin and cuda/lib instead of the system areas.
mirzanahal avatar
kg flag
Is it necessary to reinstall Nvidia drivers to solve the issue of my Ubuntu only booting in recovery mode? I believed I had completely removed all Nvidia drivers, but I still see ```nvidia-340``` in the ```ubuntu-drivers list```. Why is this happening?
cc flag
The Canonical Nvidia packages contain all the scripts to rebuild the driver when the kernel updates (or even the video driver). Nvidia drivers from any other source may not -- hence the common "Update broke my computer" complaint. A clean removal of the existing Nvidia packages let the full install replace everything, so it can have a working configuration. Older CUDA debs had weird dependencies that might cause removal of all cuda files when the video driver updates. See solutions here that install CUDA without any package or system dependencies.
Score:0
kg flag

I've identified the solution to my issue. I realized that I have a GeForce 210 graphics card inserted into my motherboard. After reinstalling Ubuntu, the Nouveau driver was automatically activated. However, the graphics card cannot communicate with the nouveau driver through VGA, and this resulted in a black screen.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.