zensufi,
I have had a similar problem to yours and here is my solution:
The README.Debian for the ndiswrapper-source is a bit "misleading". It does not have the full steps for a successful installation and the words "kernel-source" used on the Debian website reffering to ndiswrapper is utterly wrong..in a sense.
Every time you read, or someone says "kernel-source" when you are using a Debian-make kernel-image, shut them up and substitute with "kernel-headers".
Example on my system:
1)
gives 2.6.10-1-686, as I am using the kernel-image-2.6.10-1-686 package
2) You DON'T need the kernel source for 2.6.10 as you have been told but the corresponding kernel header files, kernel-headers-2.6.10-1-686. As a sanity check you can
Code:
apt-cache search kernel-headers-2.6.10-1-686
to verify that the needed package is actually available!
3) Ndiswrapper-source installs a bzip2 file in /usr/src. Make sure this is unzipped:
Code:
tar xvfj ndiswrapper-source.tar.bz2
4) go to your kernel headers directory,
Code:
cd /usr/src/kernel-headers-2.6.10-1-686
. There will be a very similar directory called linux-headers-2.6.10-1, don't go there!
5) Execute
Code:
make-kpkg modules_image
, which builds all modules in /usr/src/modules (the command make-kpkg is installed via the kernel-package package if you don't have it)
6) And thats the module sorted! All you need now is to install ndiswrapper-utils and wireless-tools. Then do the usual steps with ndiswrapper do install your windows drivers.
I hope I wasn't too late to help, I have had this problem and many others due to badly written Debian README's... (cough nvidia-kernel-source cough!)