Raspberry Pi 3B Stretch: ArduCam B0176 libcamera install fails with Cannot find package

Hi, hoping someone can help. I’m trying to install libcamera on a Raspberry Pi 3B so I can drive a B0176 autofocus camera. I’m following the ArduCam libcamera guide (the raspberry-pi-libcamera-guide page). Every time I run the install script it bails out with “Cannot find the corresponding package”.

I’m running:

pi@dex:~ $ ./install_pivariety_pkgs.sh -p libcamera_dev
pi@dex:~ $ ./install_pivariety_pkgs.sh -p libcamera_apps

Both fail with the same message and it tells me to send hardware revision a02082, kernel 4.19.66-v7+, Package: libcamera_dev – stretch (and libcamera_apps – stretch on the second one). I’m out of ideas, any pointers appreciated. I’d also like to confirm the camera itself actually works once we get past this.

Welcome! The “cannot find the corresponding package” message usually means the installer couldn’t match a package to your exact hardware/kernel/OS combo. Can you share a bit more about your setup so I can check what’s available?

Specifically:

  • Hardware revision (you already mentioned a02082)
  • Kernel version
  • OS release / codename
  • Architecture

Running these two will give me everything:

uname -a
cat /etc/os-release

And if you can paste the full output of the install script run (not just the last line), that would really help.

Sure, here’s everything.

Hardware: Raspberry Pi 3B, Hardware Revision: a02082
Kernel: 4.19.66-v7+
ARCH: armv7l
OS codename: stretch

uname -a:

Linux dex 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

cat /etc/os-release:

PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“9”
VERSION=“9 (stretch)”
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”

For what it’s worth the meminfo looks fine (MemTotal ~895MB, plenty free) and my config.txt has start_x=1 and gpu_mem=128 already set. Let me know if you want those pasted too.

Thanks, that’s helpful. Can you run the installer again and paste the whole console output? I want to see the header block it prints (hardware revision / kernel / OS codename / arch) and how far it gets before it fails.

./install_pivariety_pkgs.sh -p libcamera_dev

Please include everything, the wget lines included.

Here’s the full output from both steps.

Step 2, libcamera_dev:

=================================================
Hardware Revision: a02082
Kernel Version: 4.19.66-v7+
OS Codename: stretch
ARCH: armv7l

–2022-06-04 13:13:21-- https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_dev_links.txt
Resolving github.com (github.com)… 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/26d6babc-fb43-4932-9254-d33017f3db46?...response-content-disposition=attachment%3B%20filename%3Dlibcamera_dev_links.txt
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.109.133, 185.199.110.133, 185.199.111.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1602 (1.6K) [application/octet-stream]
Saving to: ‘libcamera_dev_links.txt’
libcamera_dev_links 100%[===================>] 1.56K --.-KB/s in 0.002s
2022-06-04 13:13:27 (950 KB/s) - ‘libcamera_dev_links.txt’ saved [1602/1602]
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: a02082
Kernel Version: 4.19.66-v7+
Package: libcamera_dev – stretch

Step 3, libcamera_apps:

=================================================
Hardware Revision: a02082
Kernel Version: 4.19.66-v7+
OS Codename: stretch
ARCH: armv7l

–2022-06-04 13:13:45-- https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_apps_links.txt
Resolving github.com (github.com)… 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/db6e6b2b-b9f6-46d4-8785-03d8c9427d5c?...response-content-disposition=attachment%3B%20filename%3Dlibcamera_apps_links.txt
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1719 (1.7K) [application/octet-stream]
Saving to: ‘libcamera_apps_links.txt’
libcamera_apps_link 100%[===================>] 1.68K --.-KB/s in 0s
2022-06-04 13:13:47 (4.40 MB/s) - ‘libcamera_apps_links.txt’ saved [1719/1719]
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: a02082
Kernel Version: 4.19.66-v7+
Package: libcamera_apps – stretch

So it downloads the links file fine, then just gives up. Neither command ever gets past that point.

Thanks, that clears it up. Looking at your header block - a02082 hardware revision with kernel 4.19.66-v7+ and OS codename stretch - you’re on a very old stack, and the libcamera driver packages simply aren’t built for that combination. That’s why the installer can’t find a match: there’s no libcamera_dev / libcamera_apps package published for stretch on this revision.

The fix is to move to a newer Raspberry Pi OS. Either Bullseye or Buster will work:

Bullseye (full, armhf): Index of /raspios_full_armhf/images/raspios_full_armhf-2022-04-07
Buster (full, armhf): Index of /raspios_full_armhf/images/raspios_full_armhf-2021-05-28

Flash one of those, boot up, and re-run the installer. Once you’re on a supported OS the package should resolve and you can proceed to validate the camera.

Hmm, I’m not convinced it’s the OS version. My Pi is fully up to date - I ran the upgrade commands and there’s literally nothing to upgrade. If it were just an outdated OS, wouldn’t apt be prompting me to update something?

Here’s what I ran and what I got back:

pi@dex:~ $ cat /etc/os-release

PRETTY_NAME=“Raspbian GNU/Linux 9 (stretch)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“9”
VERSION=“9 (stretch)”
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”

pi@dex:~ $ sudo apt-get update

Get:1 http://deb.nodesource.com/node_9.x stretch InRelease [4,623 B]
Hit:2 Index of /debian stretch InRelease
Hit:3 Index of /raspbian stretch InRelease
Fetched 4,623 B in 1s (3,225 B/s)
Reading package lists… Done

pi@dex:~ $ sudo apt full-upgrade

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So the system reports itself as up to date. The error from the installer really doesn’t look like it’s about the OS being behind - it looks like the installer just can’t find a matching package at all.

I understand why it looks that way, but being up to date on stretch is different from running a supported release for libcamera. The Raspberry Pi system you’re running (stretch) is too old to support libcamera - the packages we build are targeted at newer releases. Please update to the latest Raspberry Pi system and then test the installation again.

Earlier I was told by support (Yang from the Arducam Support Team, Tuesday June 7 2022 1:50 AM) that:

“You can raspberry pi system is too old to support libcamera. You can update to the latest Raspberry Pi system and test the installation again.”

But I already showed that my system reports as fully up to date - sudo apt-get update + sudo apt full-upgrade both come back clean with 0 upgraded, 0 to install. So “update to the latest” is confusing me, since apt says there’s nothing to update to. If the answer is that I need a newer major release, that’s a different thing than what apt is telling me.

I’ve attached a screenshot of the error output and the apt results in case it helps.

Ah, I see the confusion now - sorry for not being clearer. “Update to the latest” doesn’t mean running apt on your current install; it means installing a newer Raspberry Pi OS release. Stretch is at end of life, so apt will happily report it’s up to date even though it’s an old release.

The latest Raspberry Pi system is Bullseye. Flash a fresh Bullseye image, boot it, and re-run the installer for libcamera_dev and libcamera_apps. That’s the release we support for libcamera, so the packages should resolve and then you can test the camera.