2

While trying to update my Cuda driver and toolkit using the following link, i am getting the below error

$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: cuda-drivers-520 : Depends: nvidia-settings (>= 520.61.05) but it is not installable nsight-systems-2022.4.2 : Depends: libtinfo5 but it is not installable E: Unable to correct problems, you have held broken packages.

Also, i tried to install cuda driver using the .run file from the same link, it did work but it seems the cuda toolkit are not installed. I use

$ nvcc --version 
Command 'nvcc' not found, but can be installed with:
sudo apt install nvidia-cuda-toolkit

Will appreacite if someone can help me !

2 Answers2

0

Hey I caught into the same issue on my office PC so I fixed it by using command

lsmod | grep nvidia

and looking at the conflicting dependencies. and removing dependencies one by one. I know it was a hectic work but it worked for me.

0

I think I have found a way, after checking the boxes in the ubuntu software tab for download from the internet as in the figure software updater

then reboot the system. After that, I could reinstall the Cuda-toolkit-1.8 with drivers having all the features.