Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4028  / 2 Years ago, fri, october 14, 2022, 1:55:35

My problem is similar to this one, E: Unable to locate package caffe-cuda, but I will try to give more details.


I used the folowing command to install caffe-cuda:


sudo apt install caffe-cuda

and got the error:


E: Unable to locate package caffe-cuda

So I tried apt-cache search caffe and got this:


caffe-cpu - Fast, open framework for Deep Learning (Meta)
caffe-doc - Caffe's doxygen docs and examples
caffe-tools-cpu - Tools for fast, open framework for Deep Learning (CPU_ONLY)
caffeine - prevent the desktop becoming idle in full-screen mode
git-cola - highly caffeinated git GUI
gnome-shell-extension-caffeine - GNOME Shell extension to keep your computer awake
libcaffe-cpu-dev - development files for Caffe (CPU_ONLY)
libcaffe-cpu1 - library of Caffe, deep learning framework (CPU_ONLY)
libcaffeine-java - High performance caching library
libdeepboof-java - Java library for running deep neural networks
python3-caffe-cpu - Python3 interface of Caffe (CPU_ONLY)
python3-theano - CPU/GPU math expression compiler for Python 3
ttf-aenigma - 465 free TrueType fonts by Brian Kent

Why is there no caffe-cuda here? Can anyone suggest a solution?


Here is my sources.list:


deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu focal-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-proposed main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

More From » apt

 Answers
1

I checked the original source and it seems you can install caffe with


sudo apt install caffe-cuda

or


sudo apt install caffe-cpu

As per https://packages.ubuntu.com/, it also gives the same information about both packages:



Package caffe-cuda



  • bionic (18.04LTS) (metapackages): Fast, open framework for Deep Learning (Meta)
    [multiverse]

    1.0.0-6build1: amd64 ppc64el


Package caffe-cpu



  • bionic (18.04LTS) (metapackages): Fast, open framework for Deep Learning (Meta)
    [universe]

    1.0.0-6: amd64 arm64 i386 ppc64el s390x



  • focal (20.04LTS) (metapackages): Fast, open framework for Deep Learning (Meta)
    [universe]

    1.0.0+git20180821.99bd997-5build3: amd64 arm64 armhf ppc64el s390x





So it seems to me that on Ubuntu 20.04 you should use caffe-cpu, unless there is some specific reason you want to use caffe-cuda.


In that case, you can try to add the repository for Ubuntu 18.04. Just copy the repos you have in your sources.list and append them at the end of the file. Then substitute focal with bionic in these entries.


Or maybe it is better to download the .deb file from here: https://packages.ubuntu.com/bionic/amd64/caffe-cuda/download and install it with:


dpkg -i <package_name>

[#1738] Sunday, October 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ronicod

Total Points: 71
Total Questions: 111
Total Answers: 111

Location: Montenegro
Member since Fri, Dec 10, 2021
2 Years ago
ronicod questions
Thu, Nov 11, 21, 06:26, 3 Years ago
Sun, May 7, 23, 13:57, 1 Year ago
Sun, Jun 26, 22, 06:13, 2 Years ago
Sun, Sep 25, 22, 01:45, 2 Years ago
;