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”.
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.
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.
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:
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?
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.