Install kernel source 3.18.9-5

Hi, I’m trying to install the OSMC kernel source.
Following the wiki ( the commands:

set – $(cat /proc/cmdline) && for x in “$@”; do case “$x” in osmcdev=*) sudo apt-get update && sudo apt-get install -y “${x#osmcdev=}-source-$(uname -r)”; ;; esac; done

give me this output:

Package rbp2-source-3.18.9-5-osmc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘rbp2-source-3.18.9-5-osmc’ has no installation candidate

uname -a

Linux osmc 3.18.9-5-osmc #1 SMP PREEMPT Wed Mar 11 18:59:35 UTC 2015 armv7l GNU/Linux

confirms that I need 3.18.9-5 version but seems not available in the package repository.

The kernel headers was installed without problems.

Any idea?

Bye KraNZ


I only added kernel sources as a build option after building this kernel, so these changes will take affect on the next kernel.


Thank you Sam for your reply.

If I have undestood, the 3.18.9-5-osmc kernel source is not available at this time, so if I would compile a kernel module module what kernel source version should I use?

Compliling the module with 3.16 kernel source generate a module that works with 3.18.9-5 kernel?

Thank you for your attention.


To a compile a module you only need headers, which are available