I hit the same problem when trying to build ZFS kernel modules, so I could create a flexvolume plugin built around remote mounted ZFS volumes. I ended up creating another staging VM, downgrading the kernel, then building the modules there and copying them back over. It's very (very!) ugly but works:
https://github.com/sagemathinc/smc/blob/fc4856ba83e76ed28d6255c1ad050786e6c36cf3/src/k8s/storage/zfs/build.md On Tuesday, March 29, 2016 at 2:41:38 AM UTC-7, Mark White wrote: > > Hi, > > I'm trying to install sysdig on a container engine node, it has a > dependency on the Linux kernel headers, however it seems they're not > available? > > $ sudo apt-get install linux-headers-$(uname -r) > Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Unable to locate package linux-headers-3.16.0-4-amd64 > E: Couldn't find any package by regex 'linux-headers-3.16.0-4-amd64' > > I also tried installing linux-headers-3.16.0-0.bpo.4-amd64 but it doesn't > look to be the correct version: > > Unpacking linux-headers-3.16.0-0.bpo.4-amd64 (from > .../linux-headers-3.16.0-0.bpo.4-amd64_3.16.7-ckt20-1+deb8u4~bpo70+1_amd64.deb) > > ... > Setting up linux-headers-3.16.0-0.bpo.4-amd64 > (3.16.7-ckt20-1+deb8u4~bpo70+1) ... > Examining /etc/kernel/header_postinst.d. > run-parts: executing /etc/kernel/header_postinst.d/dkms > 3.16.0-0.bpo.4-amd64 > Error! Bad return status for module build on kernel: 3.16.0-0.bpo.4-amd64 > (x86_64) > Consult /var/lib/dkms/iscsitarget/1.4.20.2/build/make.log for more > information. > > Thanks, > Mark. > > -- You received this message because you are subscribed to the Google Groups "Containers at Google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-containers. For more options, visit https://groups.google.com/d/optout.
