librealsense - E: Unable to find a source package for linux-image-3.10.40-grinch-21.3.4

I’m having trouble getting librealsense to install using the grinch kernel. I’ve found the source by way of kangalow but that has only gotten me to where I am now which is:

$ sudo apt-get install ros-indigo-librealsense 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-indigo-librealsense is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up ros-indigo-librealsense (1.11.0-1trusty-20161020-193954-0700) ...

Kernel preparation unnecessary for this kernel.  Skipping...

Running the pre_build script:

dkms: Pre-build script started...

Downloading kernel sources...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to find a source package for linux-image-3.10.40-grinch-21.3.4

ERROR: Could not download the required kernel sources to install RealSense camera support.

       To resolve, please follow the installation directions at:

Building module:
cleaning build area....(bad exit status: 2)
make KERNELRELEASE=3.10.40-grinch-21.3.4 -C /var/lib/dkms/uvcvideo/1.1.1-3-realsense/build/linux-src M=drivers/media/usb/uvc/....(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-3.10.40-grinch-21.3.4 is not supported
Error! Bad return status for module build on kernel: 3.10.40-grinch-21.3.4 (armv7l)
Consult /var/lib/dkms/uvcvideo/1.1.1-3-realsense/build/make.log for more information.
modinfo: ERROR: Module uvcvideo not found.
dpkg: error processing package ros-indigo-librealsense (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Note, I’ve unzipped the grinch kernel source( to /usr/src/linux-image-3.10.40-grinch-21.3.4

What do I need to do to get this debian package to find the grinch’s kernel source?

Hi jacksonkr,

We’re no experience on this Grinch kernel issue, hope someone from community could provide the suggestion.


I had the same problem. What I did was following this first

and installed Grinch kernel in last step. The main problem comes from uvcvideo module unloadable.