Tuesday, November 3, 2009

Debain/Ubuntu Linux Headers - 3Steps

Installing kernel source with apt is just so simple-
$>sudo apt-get update
This will update information from the apt repository.

$>sudo apt-cache search linux-headers-$(uname -r)


This should return the name of the package with the
current kernel headers along with a short description.

$>sudo apt-get install linux-headers-$(uname -r)
This command will install the kernel headers.

1 comments:

Stephanie said...

If you are still not able to find the source code for the headers, use-
$>apt-get install linux-image-2-6-686 linux-headers-2-6-686

This will install the kernel image and its corresponding source code so that your compilation will work fine.

Post a Comment