I tried to install the latest version of cuda following the instruction suggested here.
This is the command I used:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda
However, I got the following error after I ran sudo apt-get -y install cuda
.
How can I solve this problem?
Thank you in advance.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda : Depends: cuda-12-0 (>= 12.0.1) but 12.0.0-1 is to be installed
nvidia-dkms-525 : Depends: nvidia-kernel-common-525 (>= 525.78.01) but 525.60.13-0ubuntu1 is to be installed
nvidia-driver-525 : Depends: nvidia-kernel-common-525 (>= 525.78.01) but 525.60.13-0ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).