installing CUDA and cuDNN on AMI

I dont want to use the Docker containers provided and want to install CUDA and cuDNN directly on the VM and use Darknet + YOLO on the AMI…

Trying to install cuda from network deb as per cuda download page with the last step being “sudo apt-get install cuda”

I got this error: cuda :

Depends: cuda-9-2 (>= 9.2.148) but it is not going to be installed