Ubuntu – Cuda has unmet dependencies. Unable to install

aptcudadependenciesnvidiapackage-management

I have been trying to install cuda, and I cannot for the life of me figure this out :(. This is the error that i keep running into, and I can't think of any packages that would be broken on this machine. It's a fresh install of Ubuntu Server (uname -a Linux marte 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux running Cosmic)

% sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
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 : Depends: cuda-10-0 (>= 10.0.130) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Some other possibly useful information?

My attempt to find any broken packages

% sudo debsums --changed
sudo debsums --changed  7.72s user 3.54s system 22% cpu 49.658 total

/etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu cosmic main universe
deb http://archive.ubuntu.com/ubuntu cosmic-security main universe
deb http://archive.ubuntu.com/ubuntu cosmic-updates main universe

Edit: Going down the rabbit whole to try and install unmet dependencies manually, I have come to the following wall

The following packages have unmet dependencies:
 nvidia-410 : Depends: xorg-video-abi-11 but it is not installable or
                       xorg-video-abi-12 but it is not installable or
                       xorg-video-abi-13 but it is not installable or
                       xorg-video-abi-14 but it is not installable or
                       xorg-video-abi-15 but it is not installable or
                       xorg-video-abi-18 but it is not installable or
                       xorg-video-abi-19 but it is not installable or
                       xorg-video-abi-20 but it is not installable or
                       xorg-video-abi-23 but it is not installable
              Recommends: nvidia-settings (>= 331.20) but it is not going to be installed
              Recommends: nvidia-prime (>= 0.5) but it is not going to be installed or
                          bumblebee but it is not going to be installed

Does anyone have any suggestions?

Best Answer

the problem is that ubuntu does not know where to find these packages. type the following code in terminal:

add-apt-repository ppa:graphics-drivers/ppa