Score:0

Lubuntu 21.04: Install CUDA

gb flag

I need to install CUDA (and later cuDNN) on Lubuntu 21.04.

I have updated to NVIDIA drivers (my GPU is a legacy one so I am using NVIDIA 390 drivers) and now am trying to install CUDA but cannot. I previously failed to install it and needed to reinstall lubuntu because the drivers failed.

I have tried using sudo apt install nvidia-cuda-toolkit gcc-6

but get the error: Package 'gcc-6' has no installation candidate.

I would really appreciate some help. Thanks.

us flag
Do you really need gcc-6? You can use gcc-10 instead, which is available in the Ubuntu 21.04 repositories.
cc flag
What is your GPU? Not only may it limit drivers available, but also the CUDA release. Does your dnn version require a minimum CUDA release? Hopefully you can come up with a compatible set of releases for drivers, CUDA, and dnn.
Score:0
gb flag

OK I seemed to have installed it. I changed the command to:

sudo apt install nvidia-cuda-toolkit gcc-10
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.