I have faced this problem before. I want to compile a Device driver module , simple thing as hello world for my kernel. I want to use the headers instead of downloading t entire source. I do this sudo apt-get install kernel-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kernel-headers-2.6.38-13-generic E: Couldn't find any package by regex 'kernel-headers-2.6.38-13-generic' How in the world shall I ever get these headers. Regards Sraddha
Hi! I'm not familiar with apt package manager, but have you tried linux-headers? Best wishes, Vladimir Murzin -----Original Message----- From: Sraddha <dhakatevaishali@gmail.com> Sender: kernelnewbies-bounces@kernelnewbies.org Date: Fri, 9 Mar 2012 21:21:34 To: <kernelnewbies@kernelnewbies.org> Subject: Unable to locate package kernel-headers-XXX _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Fri, Mar 9, 2012 at 10:51 AM, Sraddha <dhakatevaishali@gmail.com> wrote:
I have faced this problem before. I want to compile a Device driver module , simple thing as hello world for my kernel. I want to use the headers instead of downloading t entire source.
I do this sudo apt-get install kernel-headers-$(uname -r)
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kernel-headers-2.6.38-13-generic E: Couldn't find any package by regex 'kernel-headers-2.6.38-13-generic'
How in the world shall I ever get these headers. Regards
Assuming that you are on ubuntu #apt-get install linux-headers-$(uname -r) You can also use #apt-cache search linux | grep headers to see what all is available.
On Fri, Mar 9, 2012 at 9:29 PM, Autif Khan <autif.mlist@gmail.com> wrote:
On Fri, Mar 9, 2012 at 10:51 AM, Sraddha <dhakatevaishali@gmail.com> wrote:
I have faced this problem before. I want to compile a Device driver module , simple thing as hello world for my kernel. I want to use the headers instead of downloading t entire source.
I do this sudo apt-get install kernel-headers-$(uname -r)
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kernel-headers-2.6.38-13-generic E: Couldn't find any package by regex 'kernel-headers-2.6.38-13-generic'
How in the world shall I ever get these headers. Regards
Assuming that you are on ubuntu
#apt-get install linux-headers-$(uname -r)
You can also use
#apt-cache search linux | grep headers to see what all is available.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Easiest way, go and download them http://packages.ubuntu.com/lucid-updates/linux-headers-2.6.38-13-generic -- Pritam Bankar
participants (4)
-
Autif Khan -
Pritam Bankar -
Sraddha -
Vladimir Murzin