Hi everyone, hoping someone can help me out. I just received an Arducam 16 MP autofocus camera for my Raspberry Pi and I’m trying to get it working, but I’m stuck.
My setup is running OctoPrint (not a fresh Raspberry Pi OS). I followed the install guide and when I try to run the installer I get:
./install_pivariety_pkgs.sh: command not found
The weird part is that when I tried installing it on a plain Raspberry Pi image, it told me the kernel was unsupported but it actually installed anyway. On my OctoPrint setup it just doesn’t run at all.
Two things stand out right away. The “command not found” error usually means either the script isn’t in the directory you’re running the command from, or the command itself wasn’t copied completely. Can you paste the exact command you’re running, and also tell me which directory you’re in when you run it?
Also, just to confirm — are you running this straight in a terminal over SSH, or through some OctoPrint plugin console? That changes things a bit.
If you can paste the full terminal output (not just the last line), that’ll help a lot.
Sure, here’s exactly what I ran and what came back. I grabbed it from the guide page:
./install_pivariety_pkgs.sh
Output:
./install_pivariety_pkgs.sh: command not found
Then I tried the other direction and got this instead:
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: a22082
Kernel Version: 5.4.79-v7+
Package: imx519_kernel_driver_low_speed -- buster
You are using an unsupported kernel version, please install the official SD Card image(do not execute rpi-update): https://www.raspberrypi.com/software/operating-systems/
I’m running it from a terminal over SSH, and I’ve tried all the steps in the guide. Still nothing. I attached a screenshot of what I’m seeing:
So ./install_pivariety_pkgs.sh: command not found means the shell can’t find the script to execute it — almost always because the command was copied only partially. Notice that what you pasted is just ./install_pivariety_pkgs.sh on its own. The actual install line in the guide is a longer one-liner that downloads the script and then runs it; if the download portion is missing, there’s no script in the directory for ./ to point at.
Can you re-copy the full command directly from the Quick Start Guide and paste it here before running, so we can confirm it’s complete? It should start with wget or curl on the same line, not just ./install_pivariety_pkgs.sh.
Ah, that makes sense — I think I may have grabbed only the last bit of the line. Let me try the whole thing.
Okay, so now the script actually runs (progress!). But I still end up with this part:
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: a22082
Kernel Version: 5.4.79-v7+
Package: imx519_kernel_driver_low_speed -- buster
You are using an unsupported kernel version, please install the official SD Card image(do not execute rpi-update)
So the “command not found” is gone, but now it complains about the kernel. What does the unsupported kernel message mean for me? Do I really have to re-burn the SD card with the official image?
Nice, that’s progress — the command-not-found issue was just the incomplete copy, so that part is sorted.
Now for the second error. imx519_kernel_driver_low_speed -- buster plus the kernel warning tells me the script is trying to match a driver to a Buster-era kernel (5.4.x). That message is generic — it fires whenever the installer can’t find a prebuilt package for the kernel/OS combo it detects.
Quick question before we go further: what OS is actually on this machine right now? Are you on Bullseye, or is this the OctoPrint image you mentioned earlier?
It’s the OctoPrint image — I’m not on Bullseye. That’s kind of my whole problem. The earlier advice I got was to re-burn the latest Bullseye OS because my OS was “too old” for the camera driver, but I don’t want to lose my OctoPrint setup just to get the camera working. The kernel is 5.4.79-v7+.
Right, that changes the recommendation — and honestly the earlier “re-burn Bullseye” advice doesn’t fit here.
If you’re running OctoPrint, you should be following the OctoPrint-specific camera documentation rather than the generic Bullseye/Quick Start path. The installer and driver notes for standard Raspberry Pi OS don’t line up with an OctoPrint image, which is exactly why you’re hitting the unsupported-kernel/buster warnings even after the command runs.
Walk through it top to bottom on your current OctoPrint install — no re-burn needed. Let us know if anything in that flow throws an error and we’ll dig into it.
Okay, following the OctoPrint guide now instead of the generic one. Just to be clear though — the ./install_pivariety_pkgs.sh: command not found thing was a separate issue from the kernel warning, right? I want to make sure I don’t trip over that again when I redo the steps.
./install_pivariety_pkgs.sh: command not found — because only the last part of the command was copied. Running the complete command (the one that fetches the script and then executes it) fixes that on its own.
The “unsupported kernel / cannot find the corresponding package” message — that’s the installer not matching a package to your OS/kernel. Since you’re on OctoPrint rather than standard Raspberry Pi OS, the OctoPrint guide is the correct path here, and it supersedes the earlier suggestion to re-burn Bullseye.
So: use the full command from the guide, and follow the OctoPrint-specific instructions at Solution On OctoPrint - Arducam Wiki. If you hit any errors once you’re running the correct command on the OctoPrint setup, post the output here and we’ll keep going.