CUDA and nvidia 1650. 535 Driver and CUDA unmet dependencies

I have installed the latest version of Lubuntu (22.04.3) with the nvidia 535 drivers. It is working fine.

I then installed the cuda package following the instructions. The following message occurred.


You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
cuda-tools-12-2 : Depends: gds-tools-12-2 (>= 1.7.2.10) but it is not going to be installed
nvidia-driver-535 : Depends: libnvidia-extra-535 (= 535.104.05-0ubuntu1) but 535.86.05-0ubuntu0.22.04.1 is to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

What are your suggestions for fixing this? Is this problem known?

Thanks

1 Like

I have a similar problem:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 nvidia-dkms-535 : Depends: nvidia-kernel-common-535 (= 535.104.05-0ubuntu1) but 535.104.05-0ubuntu0.22.04.3 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

What is even the difference between 535.104.05-0ubuntu1 and 535.104.05-0ubuntu0.22.04.3 ?
Seems to be the same version-number, only the strings at the end are different.

I am not sure…

I reinstalled my system (was Lubuntu 22.04.02) with the latest version due to some major problems at boot time. The latest version (22.04.03) fixed these.

When I installed the nvidia drivers for 22.04.3 there was one error. nvidia-graphics-drivers-535 not installed. I think this was due to it being available from two sources, Canonical and some other. I installed it using the --fix-broken option and it appears to be O.K.

But, regarding Cuda-toolkit,

I have today tried to install the cuda-toolkit-12-2. It installed OK for the most part except for a different unmet dependency problem:

The following packages have unmet dependencies:
cuda-cupti-dev-12-2 : Depends: cuda-cupti-12-2 (>= 12.2.142) but it is not going to be installed
cuda-nsight-compute-12-2 : Depends: nsight-compute-2023.2.2 (>= 2023.2.2.3) but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).


I have not used the --fix-broken install option yet

For me somehow purging all libnvidia* files and reinstalling libnvidia-compute-535 helped.
I have cleaned all extra sources in apt and used detailed instruction at 1. Introduction — cuda-installation-guide-linux 12.2 documentation

1 Like