LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2014, 05:30 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
The headers for the current kernel were not found.


Hey all, I just installed Kali Linux in VirtualBox and now I'm trying to install the Guest Additions but I get this error message every time I try to do the install:

Code:
The headers for the current running kernel were not 
found. If the following module compilation fails then 
this could be the reason.
The following module fails too. I've installed the correct linux-headers for my version but it still won't work and Googling this just tells me to install the linux-headers. Any ideas?

Thanks,

Joe B
 
Old 08-09-2014, 05:33 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You probably just need to install the headers for the current running kernel.

 
Old 08-09-2014, 08:00 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
descentdant_command is correct. I have encountered this same situation.

Many distros do not install kernel headers by default. They leave it to user to install them separately if user needs them.
 
Old 08-10-2014, 04:12 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Can you post the output of this command:
Code:
aptitude search linux-headers
On my system I get this:
Code:
...
p   linux-headers-3.14-2-common                - Common header files for Linux 3.14-2                
p   linux-headers-3.14-2-common:i386           - Common header files for Linux 3.14-2                
p   linux-headers-3.14-2-common-rt             - Common header files for Linux 3.14-2-rt             
p   linux-headers-3.14-2-common-rt:i386        - Common header files for Linux 3.14-2-rt             
p   linux-headers-3.14-2-rt-686-pae:i386       - Header files for Linux 3.14-2-rt-686-pae            
p   linux-headers-3.14-2-rt-amd64              - Header files for Linux 3.14-2-rt-amd64              
i A linux-headers-3.15-6.dmz.2-liquorix-amd64  - Header files for Linux 3.15-6.dmz.2-liquorix-amd64  
p   linux-headers-3.15-8.dmz.1-liquorix-686:i3 - Header files for Linux 3.15-8.dmz.1-liquorix-686    
i A linux-headers-3.15-8.dmz.1-liquorix-amd64  - Header files for Linux 3.15-8.dmz.1-liquorix-amd64  
p   linux-headers-486:i386                     - Header files for Linux 486 configuration (meta-packa
p   linux-headers-686-pae:i386                 - Header files for Linux 686-pae configuration (meta-p
p   linux-headers-amd64
...
You can clearly see that I have two linux-headers packages installed: linux-headers-3.15-6.dmz.2-liquorix-amd64 and linux-headers-3.15-8.dmz.1-liquorix-amd64. (I keep two kernels as a safety precaution in case the more recent kernel has problems.
jdk
 
Old 08-12-2014, 05:25 PM   #5
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Hey all, per my initial post I've already installed the headers. Here's my proof:

Code:
root@kali:~# aptitude search linux-headers
p   linux-headers-3.14-kali1-all    - All header files for Linux 3.14 (meta-pack
p   linux-headers-3.14-kali1-all-am - All header files for Linux 3.14 (meta-pack
i   linux-headers-3.14-kali1-amd64  - Header files for Linux 3.14-kali1-amd64   
i A linux-headers-3.14-kali1-common - Common header files for Linux 3.14-kali1  
p   linux-headers-3.14-kali1-common - Common header files for Linux 3.14-kali1-r
p   linux-headers-3.14-kali1-rt-amd - Header files for Linux 3.14-kali1-rt-amd64
i   linux-headers-amd64             - Header files for Linux amd64 configuration
p   linux-headers-rt-amd64          - Header files for Linux rt-amd64 configurat
root@kali:~#
Is there a kernel header out there somewhere that I need?

Thanks,

Joe B
 
Old 08-12-2014, 05:30 PM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Code:
uname -a
?
 
Old 08-12-2014, 05:40 PM   #7
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Here's my uname information:

Code:
root@kali:~# uname -a
Linux kali 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux
root@kali:~#
Thanks,

Joe B
 
Old 08-12-2014, 06:49 PM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is it possible that you have an upgrade waiting?
Quote:
apt-get update
apt-get upgrade
apt-get dist-upgrade
You also have
Linux kali 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux
Do your headers say the same?

Last edited by EDDY1; 08-12-2014 at 06:52 PM.
 
1 members found this post helpful.
Old 08-13-2014, 12:37 PM   #9
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Hi EDDY1, that was a nice catch -- I checked and there aren't any 3.14.5 header options even after running your three apt-get commands. I'll head back to the Kali web site and see if I can find any answers there.

Thanks,

Joe B
 
Old 08-13-2014, 04:53 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're welcome can you post output of
Quote:
cat /etc/apt/sources.list
 
Old 08-13-2014, 05:38 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
running
Code:
apt-get dist-upgrade
on kali might break all the "extra" programs that the kali devs included


do a new install of kali-linux-1.0.8-amd64.iso to upgrade
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Must original kernel headers 2.6.37 be reinstall before recompile of current? NightSky Slackware 13 07-13-2012 09:06 PM
Install kernel headers (current kernel only) squashed Fedora 2 02-24-2010 10:08 AM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Slackware64-current missing kernel headers? UpAndUp Slackware 2 08-26-2009 07:08 PM
No kernel headers found. What? colly Linux - General 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration