Nils Kassube kassube at
Mon Nov 19 10:57:52 UTC 2007

Rein Mann wrote:
> I am running Ubuntu 6.06 LTS on a Dell Inspiron 1520
> To install my NVIDIA driver I need to install the kernel headers and
> sources. Can someone tell me where from and how to install the kernel
> source for the running kernel (2.6.15-29-386)?
> When I do a sudo apt-get install kernel-source (with or without the
> actual version!) the answer is : 'can't find kernel-source'.
> I have not been able to find a clear answer anywhere.

For compiling the nvidia driver you don't need the entire kernel source, 
but only the kernel headers - 'linux-headers-2.6.15-29-368' would be the 
package name. Furthermore you should install the 'build-essential' 
package to compile the nvidia driver.

If you really want to install the entire kernel source, you need a source 
repository enabled in your /etc/apt/sources.list (edit as root), i.e. 
there should be a line like this:

deb-src dapper main

Then use these commands in a terminal:

sudo apt-get update
apt-get source linux-image-2.6.15-29-386

That will install the kernel source in the current directory.


More information about the ubuntu-users mailing list