tensorflow: Unable to locate package cuda-command-line-tools
System information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 16.04
- TensorFlow installed from (source or binary):binary
- TensorFlow version (use command below):r1.5
- Python version: 3.6
- Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version:9.0
- GPU model and memory:
- Exact command to reproduce:
Describe the problem
In the official installing guide of r1.5, the libcupti-dev library is required to run tensorflow with GPU support. When issue the following command line for CUDA Toolkit >= 8.0:
$ sudo apt-get install cuda-command-line-tools
I got this error:
$ E: Unable to locate package cuda-command-line-tools
It can’t be solved after updating source list.
I have tried on my desktop and a VM instance on Google Cloud Platform, both with Linux Ubuntu 16.04.
Source code / logs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26 (3 by maintainers)
Tensorflow’s Linux installation guide is misleading. Try a search and here is the result.
$ sudo apt-cache search cuda-command-line-tool cuda-command-line-tools-8-0 - CUDA command-line tools cuda-command-line-tools-9-0 - CUDA command-line tools cuda-command-line-tools-9-1 - CUDA command-line tools
What you should run is something like “sudo apt install cuda-command-line-tools-9-1”
Hello Team, I am still getting the same error after using @cyrilzh solution. $sudo apt-cache search cuda-command-line-tool $ sudo apt install cuda-command-line-tools-9-1 Reading package lists… Done Building dependency tree
Reading state information… Done E: Unable to locate package cuda-command-line-tools-9-1
I tried $ sudo apt-cache search cuda-command-line-tool but got nothing. I have cuda 9.0,cudnn7.05 running on Ubuntu 16.04. Is there any other solution? THX:-D
@lejafar I had installed Cuda 9.0 from Nvidia + cudnn 7 and when I tried your suggestion…
Based on @lejafar 's suggestion, I downloaded http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-command-line-tools-9-1_9.1.85-1_amd64.deb and then ran
sudo dpkg -i cuda-command-line-tools-9-1_9.1.85-1_amd64.debHowever, it will remind you to install some dependency packages first, such as cuda-nvprof-9-1. Thus I installed all dependency packages and then installed cuda-command-line-tools-9-1 successfully.
This is not necessary. CUPTI has been installed along with CUDA. Just set the LD_LIBRARY_PATH, and tf works fine.
I am in the same boat as AIGyan. Unable to locate command line tools package.
After about literally an hour of dependency hell, I managed to find all the
.debs I needed forcommand-line-toolsfor Ubuntu 16.04 compatible withcuda 9.2on this page. (i.e., without having to downgrade tocuda 9.0orcuda 9.1). Similar to @max0x 's solution, I guess.Nagging Awaiting Response: It has been 14 days with no activityand the
awaiting responselabel was assigned. Is this still an issue?Do following things. Hope it helps : $ sudo apt-get install cuda-9.0 $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64
Download cuDNN for 9.0 (You need to register before downloading) https://developer.nvidia.com/rdp/form/cudnn-download-survey
$ sudo dpkg -i libcudnn7_7.1.2.21-1+cuda9.0_amd64.deb
Close all terminal and open new $ source activate tensorflow $ python #> > import tensorflow as tf
You should not get any error now. @NataliaDiaz @Netroman @zxr12748
As part of an answer to your email @Queequeg92 I found it important to explicitly set the ENV vars to the correct version like
(same for Toolkit 8.0) in my
.bashrc. Note there might be some oldlibcupti.so*in/usr/lib/x86_64-linux-gnu/libcupti.so:The correct package for apt-get would be
sudo apt-get install libcupti-dev@zxr12748
Same here… Did you perhaps find a solution?
@AIGyan @bjenkinsgit https://www.tensorflow.org/install/install_linux is a some parts accurate some parts misleading and someparts inaccurate.
Like @cyrilzh suggested do 👍 :~$ sudo apt-cache search cuda-command-line-tool [sudo] password for manbharae: cuda-command-line-tools-8-0 - CUDA command-line tools cuda-command-line-tools-9-0 - CUDA command-line tools cuda-command-line-tools-9-1 - CUDA command-line tools
but don’t do use cuda-command-line-tools-9-1, Tensorflow supports only 9-0 at the moment.
uninstall cuda 9-1 and install cuda-9-0. then install cuda-command-line-tools-9-0
hope it helps. This worked for me.
In the end I downloaded the Tensorflow 9.1 source, installed bazel and other tools and compiled the source for my GPU. I now have Tensorflow 9.1, cudnn 7.0.5 running on Ubuntu 17.10.
@bjenkinsgit @AIGyan I’m using Ubuntu 16.04 and I resolved the issue by downloading the package from http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/
This will also install
cuda-command-line-tools-9-0