Installing caffe on Ubuntu 22.04 LTS

1,846 views
Skip to first unread message

Richel J.C. Bilderbeek

unread,
Sep 1, 2022, 6:12:28 AM9/1/22
to Caffe Users
Dear Caffe users,

At https://caffe.berkeleyvision.org/install_apt.html I found how easy it is to install Caffe under Ubuntu, by simply using apt-get.

However, under the newest LTS, 22.04 Jammy Jellyfish, there is no Caffe apt package available. This is in concordance with https://launchpad.net/ubuntu/+source/caffe . Also an `apt-cache search caffe` does not find Caffe (see output below).

Are there plans to make Caffe be installable using `apt-get` for Ubuntu 22.04 LTS? If yes/no, what is the recommended installation until then?

Thanks and cheers, Richel Bilderbeek


```
richel@richel-N141CU:~/GitHubs/caffe_example_1$ apt-cache search caffe
caffeine - prevent the desktop becoming idle in full-screen mode
fonts-aenigma - 465 free TrueType fonts by Brian Kent
git-cola - highly caffeinated git GUI
libarmnn-cpuref-backend22 - Arm NN is an inference engine for CPUs, GPUs and NPUs
libarmnn-dev - Arm NN is an inference engine for CPUs, GPUs and NPUs
libarmnn22 - Arm NN is an inference engine for CPUs, GPUs and NPUs
libarmnntfliteparser-dev - Arm NN is an inference engine for CPUs, GPUs and NPUs
libarmnntfliteparser22 - Arm NN is an inference engine for CPUs, GPUs and NPUs
libcaffeine-java - High performance caching library
libdeepboof-java - Java library for running deep neural networks
libonnx-dev - Open Neural Network Exchange (ONNX) (dev)
libonnx-testdata - Open Neural Network Exchange (ONNX) (test data)
libonnx1 - Open Neural Network Exchange (ONNX) (libs)
libonnxifi - Open Neural Network Exchange (ONNX) (ONNXIFI)
libtorch-dev - Tensors and Dynamic neural networks in Python (Development Files)
libtorch-test - Tensors and Dynamic neural networks in Python (Test Binaries)
libtorch1.8 - Tensors and Dynamic neural networks in Python (Shared Objects)
libxir-dev - Xilinx Intermediate Representation (XIR) for deep learning algorithms (develop)
libxir-utils - Xilinx Intermediate Representation (XIR) for deep learning algorithms (utils)
libxir1 - Xilinx Intermediate Representation (XIR) for deep learning algorithms (runtime)
python3-onnx - Open Neural Network Exchange (ONNX) (Python)
python3-torch - Tensors and Dynamic neural networks in Python (Python Interface)
```

Tamas Nemes

unread,
Sep 1, 2022, 7:47:30 AM9/1/22
to Caffe Users
Hi Richel,

Caffe is no longer maintained, so new Ubuntu releases don't get precompiled apt packages anymore (actually, the code was not updated since 2015, so it didn't work on earlier Ubuntu versions either - but that's another story...). The only way is to compile it yourself. A while ago, I bundled my insights on this process in an installation guide you can find here: https://github.com/Totemi1324/caffe-installation-guide Give it a try to see if it helps! I'm here for questions if you are struggling with something.

Regards,
Tamas
Reply all
Reply to author
Forward
0 new messages