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 cuda_9.0.176_384.81_linux.run. 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:

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

get your installers from:

http://www.nvidia.com/getcuda

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