Unable to locate package linux-headers-3.8.13 error while installing linux headers on my beagle bone

hi all,
I recently purchased beagle bone black and i want to install linux headers to build modules.But when i try to install using command # apt-get install linux-headers-$(uname -r),i am seeing following error

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-3.8.13-bone47
E: Couldn’t find any package by regex ‘linux-headers-3.8.13-bone47’

Please help me out on this.

Thanks in advance.
Tarak.

Update to a newer kernel.

$ sudo apt-get update

$ sudo apt-cache search linux-image

Then pick a suitable and available kernel. Install it, then reboot. After that you should be able to find a suitable package for installing linux-headers

debian@beaglebone:~$ uname -r
3.8.13-bone70
debian@beaglebone:~$ apt-cache search linux-headers | grep 3.8
linux-headers-3.8.13-bone63 - Linux kernel headers for 3.8.13-bone63 on armhf
linux-headers-3.8.13-bone64 - Linux kernel headers for 3.8.13-bone64 on armhf
linux-headers-3.8.13-bone65 - Linux kernel headers for 3.8.13-bone65 on armhf
linux-headers-3.8.13-bone66 - Linux kernel headers for 3.8.13-bone66 on armhf
linux-headers-3.8.13-bone67 - Linux kernel headers for 3.8.13-bone67 on armhf
linux-headers-3.8.13-bone68 - Linux kernel headers for 3.8.13-bone68 on armhf
linux-headers-3.8.13-bone69 - Linux kernel headers for 3.8.13-bone69 on armhf
linux-headers-3.8.13-bone70 - Linux kernel headers for 3.8.13-bone70 on armhf
linux-headers-3.8.13-bone71 - Linux kernel headers for 3.8.13-bone71 on armhf
linux-headers-3.8.13-xenomai-r67 - Linux kernel headers for 3.8.13-xenomai-r67 o n armhf
linux-headers-3.8.13-xenomai-r69 - Linux kernel headers for 3.8.13-xenomai-r69 o n armhf
linux-headers-3.8.13-xenomai-r70 - Linux kernel headers for 3.8.13-xenomai-r70 o n armhf
linux-headers-3.8.13-xenomai-r71 - Linux kernel headers for 3.8.13-xenomai-r71 o n armhf
linux-headers-3.8.13-xenomai-r72 - Linux kernel headers for 3.8.13-xenomai-r72 o n armhf

Also if size is a concern. You should be able to apt-get purge the older linux-image package . Once you’ve made sure the newer image works good for you.

William, I see you are getting a nice list of header packages. Could you share your sources.list content? If I apt-cache search linux-headers, I only get a few of them, none of them associated with 3.8.13boneXX

Dne sobota, 11. julij 2015 23.44.35 UTC+2 je oseba William Hermans napisala:

william@beaglebone:~$ cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
#deb-src http://httpredir.debian.org/debian/ jessie main contrib non-free

deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://httpredir.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free

#deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
##deb-src http://httpredir.debian.org/debian jessie-backports main contrib non-free

deb https://deb.nodesource.com/node_0.12 jessie main
#deb-src https://deb.nodesource.com/node_0.12 jessie main

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee

Thats a stock sources.list

William,
Thank you very much.