installing cuDNN on ubuntu17.10

Hi there,
please guide me how i can install cuDNN on ubuntu 17.10.
I have already installed cuda8 by “sudo apt install nvidia-cuda-toolkit”.
please mention the relevant command.
Best Regards.

I have the same problem, I used this command “sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit nvidia-nsight” and it is work and I have nvcc but I would to install Tensorflow; I need to install cuDNN but I could not find the path for the files.

zaher@zaher-GL502VM:~/Code$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

Please any help…

I couldn’t find any soluation; so, I uninstall the cudatoolkit using this commands

Uninstall nvidia-cuda-toolkit and it’s dependencies

sudo apt-get remove --auto-remove nvidia-cuda-toolkit

from this answerhttps://askubuntu.com/questions/530043/removing-nvidia-cuda-toolkit-and-installing-new-one?answertab=votes#tab-top

Then I reinstall it by follow this article http://simonboehm.com/tech/2017/06/23/installingTensorFlow.html

Which works for me, have good luck.