Install cuda for tensorflow on debian testing (buster)

https://www.tensorflow.org/install/install_linux#NVIDIARequirements
Says to install Cuda 9.0
I chose x86_64 ubuntu 17.10 legacy release 9.0 deb file.
I get the following errors:
$ sudo apt-get install cuda-9-0
The following packages have unmet dependencies:
cuda-9-0 : Depends: cuda-runtime-9-0 (>= 9.0.176) but it is not going to be installed

$ sudo apt-get install cuda-runtime-9-0
The following packages have unmet dependencies:
cuda-runtime-9-0 : Depends: cuda-drivers (>= 384.81) but it is not going to be installed

$ sudo apt-get install cuda-drivers
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-drivers : Depends: nvidia-384 (>= 384.81) but it is not going to be installed
Depends: nvidia-384-dev (>= 384.81) but it is not going to be installed
Depends: libcuda1-384 (>= 384.81) but it is not going to be installed
Depends: nvidia-opencl-icd-384 (>= 384.81) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ nvidia-smi
Driver Version: 390.67

$ python -c “import tensorflow as tf; print(tf.version)”
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

Any suggestions?

How did you install 390.67?

Thanks for asking. Not sure, perhaps with downloaded run file. Tried to uninstall it, but keeps coming back, when I try sudo apt install nvidia-driver

One possible approach:

start over with a clean load of your OS. No NVIDIA software installed of any kind (don’t install anything from ppa either).

Then get your CUDA installers from https://www.nvidia.com/getcuda (use the archive link if needed) and follow the instructions in the linux install guide, carefully:

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

You’ll notice there is no instruction in the linux install guide like this:

sudo apt install nvidia-driver