aptitude install linux-headers-`uname -r` for just the headers (which is normally all you need).
If you need the full source, aptitude install linux-source-2.6.17. After you untar the source in /usr/src, you'll have to ln -s /usr/src/linux-source-2.6.17 /usr/src/linux. then you need to cp /boot/config-2.6.17-2-686 /usr/src/linux/.config. Then cd /usr/src/linux and make oldconfig. Basically, what this will do is install the kernel source, create a symlink from /usr/src/linux to the kernel source, and then copy the configuration of your running kernel to the kernel tree.
Like I said, I would try just installing the headers first. That usually works.
|