Cannot find package when installing 64MP camera driver on Raspberry Pi 4 Ubuntu 20.04

Hi, I’m trying to get the 64MP camera working on my Raspberry Pi 4 running Ubuntu 20.04 (Focal Fossa). I really have to stay on 20.04 because it’s for a robotic application and I can’t change the OS. When I try to install the packages, the script just fails and tells me it can’t find the package. My end goal is just to grab video frames from this camera. Is there an alternate package I can use? Here’s what I get:

Cannot find the corresponding package, please send the following information to [email protected]

Hi, sorry you’re running into this. Can you paste the full output you got when running the installer, plus the system info it printed? I especially need the hardware revision, kernel version, OS codename, arch, and which package you were trying to install. That’ll help me figure out whether there’s a matching driver package for your setup.

Sure, here’s the environment stuff:

OS: Ubuntu 20.04 (Focal Fossa)
Hardware: Raspberry Pi 4, 64MP camera
Hardware Revision: c03114
Kernel Version: 5.4.0-1066-raspi
OS Codename: Focal Fossa
ARCH: aarch64 (Focal Fossa-arm64)
Package attempted: kernel_driver

And the command I ran was:
./install_pivariety_pkgs.sh -p kernel_driver

Thanks. Can you paste the whole terminal output from that run? The beginning of the log usually matters as much as the end. I want to see any dpkg errors and what the script downloaded.

Here’s the full output:

dpkg-query: no packages found matching raspberrypi-kernel
dpkg: error: --compare-versions takes three arguments:
Type dpkg --help for help about installing and deinstalling packages [*];
Use ‘apt’ or ‘aptitude’ for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating .deb files;
Options marked [
] produce a lot of output - pipe it through ‘less’ or ‘more’ !

Hardware Revision: c03114
Kernel Version: 5.4.0-1066-raspi
OS Codename: Focal Fossa
ARCH: aarch64

kernel:5.4.0-1066-raspi
–2022-09-16 18:21:29-- https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/kernel_driver_links.txt
Resolving github.com (github.com)… 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/.../kernel_driver_links.txt [following]
–2022-09-16 18:21:30-- https://objects.githubusercontent.com/.../kernel_driver_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: 9393 (9.2K) [application/octet-stream]
Saving to: ‘kernel_driver_links.txt’
kernel_driver_links.txt 100%[====>] 9.17K --.-KB/s in 0.003s
2022-09-16 18:21:30 (2.63 MB/s) - ‘kernel_driver_links.txt’ saved [9393/9393]
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: c03114
Kernel Version: 5.4.0-1066-raspi
Package: kernel_driver – Focal Fossa-arm64
You are using an unsupported kernel version, please install the official SD Card image(do not execute rpi-update): Raspberry Pi OS downloads – Raspberry Pi

Thanks, that’s exactly what I needed. Two things stand out here.

First, the dpkg lines:

dpkg-query: no packages found matching raspberrypi-kernel
dpkg: error: --compare-versions takes three arguments:

That tells me the script is looking for a raspberrypi-kernel package to compare versions against, and it isn’t present on your system. On Ubuntu 20.04 the kernel packaging is different from Raspberry Pi OS, so the script can’t resolve it and the version comparison breaks.

Second, the installer did download the driver links file fine (kernel_driver_links.txt, 9393 bytes), so it’s not a network issue - it just couldn’t find a matching kernel_driver package for your exact kernel/OS combo and bailed out with the ‘unsupported kernel version’ message.

So does that mean there’s a package for a different kernel I could use instead? Like if I switched to the official SD card image, would the same script work? I’d rather not, because of the robot setup, but I need to know my options.

Yeah, that’s the crux of it. The 64MP camera currently doesn’t have a supported kernel driver package for Ubuntu 20.04 on the Pi 4. Your kernel (5.4.0-1066-raspi) isn’t one the install script has a matching package for, which is why it reports the unsupported kernel version and points you to the official SD card image:

And just to be clear on the recommended path there - use the official image and do NOT run rpi-update, since that pulls a kernel the driver isn’t built against.

Understood. So there’s no alternate package that works on Focal Fossa right now at all? If I really have to stay on Ubuntu 20.04, is there any other route?

For the 64MP specifically on Ubuntu 20.04, there isn’t a supported driver package available at the moment - it’s genuinely unsupported on that OS right now, so it’s not something a different flag or package selection will fix.

If you must stay on Focal Fossa, the realistic route is to get it in front of my pre-sale colleagues and make a customized request - you can reach them at [email protected]. They’re the ones who’d handle a custom request for that OS/kernel combo.

So to wrap up where this stands:

  • 64MP on Ubuntu 20.04 (Pi 4, kernel 5.4.0-1066-raspi) = unsupported right now.
  • The installer failed to find a matching kernel_driver package and reported the unsupported kernel version.
  • The dpkg errors (no packages found matching raspberrypi-kernel, --compare-versions takes three arguments) are a symptom of that, not a separate problem to fix.
  • If you can move to the official SD card image (and avoid rpi-update), the script should behave properly.
  • If you have to keep Ubuntu 20.04, email [email protected] for a customized request.

Sorry I don’t have a magic package for you here, but that’s the honest state of it.