CUDA install unmet dependencies: cuda : Depends: cuda-10-0 (>= 10.0.130) but it is not going to be installed

Came across this a while back and wanted to provide the correct instructions to resolve as there is no need to use aptitude here.
For clean install you must purge all previous cuda, nvidia packages etc.

As root execute following:

apt clean; apt update; apt purge cuda; apt purge nvidia-*; apt autoremove; apt install cuda

55 Likes