2

I tried to install Caffe through the link https://caffe.berkeleyvision.org/install_apt.html and I got the error E: Unable to locate package caffe-cuda.

Can anyone suggest a solution?

  • 1
    packages.ubuntu.com/… shows it's in multiverse ; do you have multiverse repo. enabled? You didn't provide your release; so if you're not a release listed in my search how am I to know unless you tell me – guiverc Jul 16 '19 at 11:53
  • What’s your Ubuntu version? What exact command did you use? (You can check your Bash history.) – Melebius Jul 16 '19 at 11:54
  • Ubuntu version is 16.04 and i used make -j8 command – Srikanth Lukka Jul 17 '19 at 14:09
  • Please edit your question to include all details. Provide the commands along with their outputs. The make command is definitely not relevant to the output you posted in your question. – Melebius Jul 18 '19 at 6:16
  • 1
    @Merlebius According to the linked tutorial in the question that command the generated the error message was sudo apt install caffe-cpu because this tutorial was specific to a later release of Ubuntu. Ubuntu 16.04 does not have this package and many of its dependencies in its default repositories. – karel Jul 18 '19 at 6:40
1

According to the link in your question everything including caffe itself is packaged in 17.04 and higher versions, but you are currently using Ubuntu 16.04 which does not contain these packages in its default repositories.

caffe-cuda is not available from the default Ubuntu 16.04 repositories. Ubuntu 16.04 can be upgraded directly to Ubuntu 18.04 which is the next LTS release after 16.04. To install caffe-cuda in Ubuntu 18.04 and later open the terminal and type:

sudo apt install caffe-cuda  

For information about installing other caffe packages in Ubuntu 16.04 see this answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.