This question already has an answer here:
- How do I Install CUDA on Ubuntu 18.04? 8 answers
I am trying to install cuda-9 on ubuntu 18.04 but cuda-9 does not support gcc later than 6. If I do "sudo apt install gcc-6" or any lower version it says, unable to locate gcc-6. Can somebody help me with this.