Linux-Libre Kernel Headers

12 respostas [Última entrada]
grimlok
Desconectado
Joined: 04/16/2013

Hey all,

I was wondering where I could pick up the kernel headers for the newest iterations of the linux-libre kernel. I used to be able to get it by using this command: sudo apt-get install linux-headers-`uname -r` but it says they are nowhere to be found. The reason for doing this is to make VirtualBox work.

Any help would be appreciated.

Thanks,
grimlok

grimlok
Desconectado
Joined: 04/16/2013

Help? :-)

ferris-bueller-anyone.gif
albertoefg
Desconectado
Joined: 04/21/2016

Hello. I am not sure of what you mean.

You can install jxself kernel

https://jxself.org/linux-libre/

Or if that is not what you need, perhaps look at this

https://www.fsfla.org/ikiwiki/selibre/linux-libre/

Hope that helps :)

grimlok
Desconectado
Joined: 04/16/2013

It's the kernel header files I guess. VirtualBox uses them to interface with the kernel. Everytime Linux-Libre updates I need to run that command so that my system has the most up-to-date version of the header files. The most current versions of the kernel does not seem to have them in the repository though. So I was wondering where and how I can go about getting them.

https://kernelnewbies.org/KernelHeaders

grimlok

jxself
Desconectado
Joined: 09/13/2010

If you're using the kernel package from my repository you get the headers automatically.

Also, you know that VirtualBox has freedom problems right? Not all of it can be compiled with a free compiler. Debian has moved it out of their Main repository for this reason. So for your freedom's sake please use something else.

grimlok
Desconectado
Joined: 04/16/2013

Is there something other than VirtualBox? Unfortunately I need to use it to access some things at work being that I work in a ::cough:: ::cough:; Windows environment... How do I check where the headers are? Because when I run the command 'sudo /etc/init.d/vboxdrv setup' it tells me my system isn't set up to build kernel modules. And then refers me to apt-get for said kernel headers which then fails for my particular version of the kernel.

I am running the 4.8.11 linux-libre kernel.

Like I said, this wasn't a problem with earlier versions and I can see that there are earlier and later versions listed when I run 'sudo apt-get install linux-headers'

And I am using your repository Jason.

Thanks again!
grimlok

loldier
Desconectado
Joined: 02/17/2016

Is it Guest Additions that won't work without the headers or what?

grimlok
Desconectado
Joined: 04/16/2013

I am trying to just run my windows 7 vm and it gives an error stating the kernel drivers are not installed, and it needs the headers to install them.

loldier
Desconectado
Joined: 02/17/2016

How about this then.

http://www.binarytides.com/fix-vbox-kernel-driver-error/

sudo apt-get install build-essential module-assistant

grimlok
Desconectado
Joined: 04/16/2013

That needs the kernel headers too:

grimlok@alpha-trion:~$ sudo m-a prepare
Getting source for kernel version: 4.8.11-gnu
apt-get install linux-headers-4.8.11-gnu
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.8.11-gnu
E: Couldn't find any package by regex 'linux-headers-4.8.11-gnu'

jxself
Desconectado
Joined: 09/13/2010

Oh you're on 4.8? Support for the 4.8 series was discontinued back in January and the packages for it have since been removed from my APT repository so there's nothing for the package manager to find.

Currently supported versions can be found on https://jxself.org/linux-libre/ in the part where it says "current and upcoming kernel versions to know about."

Please upgrade to a supported kernel version. If you install one of the packages listed from the chart where it says "please continue reading to find the use case that most closely describes what you want" then you should be fine.

grimlok
Desconectado
Joined: 04/16/2013

Hmm.. I thought I was up to date. Shouldn't it be checking that when I do the software updater?

grimlok
Desconectado
Joined: 04/16/2013

Thanks Jason, that worked out for me.