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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-09-2014, 05:30 PM
|
#1
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Rep:
|
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
|
|
|
08-09-2014, 05:33 PM
|
#2
|
Senior Member
Registered: Mar 2012
Posts: 1,882
|
You probably just need to install the headers for the current running kernel.

|
|
|
08-09-2014, 08:00 PM
|
#3
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,932
|
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.
|
|
|
08-10-2014, 04:12 AM
|
#4
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
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
|
|
|
08-12-2014, 05:25 PM
|
#5
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Original Poster
Rep:
|
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
|
|
|
08-12-2014, 05:30 PM
|
#6
|
Senior Member
Registered: Mar 2012
Posts: 1,882
|
|
|
|
08-12-2014, 05:40 PM
|
#7
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Original Poster
Rep:
|
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
|
|
|
08-12-2014, 06:49 PM
|
#8
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
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.
|
08-13-2014, 12:37 PM
|
#9
|
Member
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178
Original Poster
Rep:
|
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
|
|
|
08-13-2014, 04:53 PM
|
#10
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
You're welcome can you post output of
Quote:
cat /etc/apt/sources.list
|
|
|
|
08-13-2014, 05:38 PM
|
#11
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,690
|
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
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|