Error during cuda toolkit installation, Logging: command not found

I have an Ubuntu 16.04 laptop with a Geforce GTX 1050 graphics card. I tried to install the CUDA 9.0 toolkit using sudo sh Once I go past the on-screen prompts, the last of which is “Enter CUDA Samples Location”, the cursor blinks for a few seconds and then displays
“Logging: command not found”

MY aim is to install the toolkit for use with TensorFlow for deep learning purposes. Why is this error happening? Is there any other way to install?

I am facing the exact same problem and would appreciate any suggestion.

You may have better luck with the package manager install method.

Read the linux install guide:

get your installers from:

(if you’re after an older CUDA release like 9.0, use the legacy releases button)