Try: apt-get linux-kernel-headers
If it doesn't help try changing line 305 of /usr/include/bits/socket.h from "#include <asm/socket.h>" to "#include </usr/src/linux/include/asm-i386/socket.h>
I installed knoppix 3.6 on hard disk.
I tried to recompile kernel: I unpacked source kernel 2.6.11 in /usr/src/linux. I copied /boot/config-2.6.7 there but this is what happens:
root@haus:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
What do it means? I did the same procedure with debian which worked. What changes in knoppix?
Thank you helping me! I am destroied by this problem...
Try: apt-get linux-kernel-headers
If it doesn't help try changing line 305 of /usr/include/bits/socket.h from "#include <asm/socket.h>" to "#include </usr/src/linux/include/asm-i386/socket.h>

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$169.99
Lenovo ThinkPad T14S Gen 1 8-Core 4750U 1.70 GHz 512 GB SSD 16 GB RAM Win11Pro
$240.00
Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor
$175.00
DELL Optiplex 780 SFF CORE2DUO 3.0GHz 8GB RAM 250GB HDDDVDRW NO OS
$99.99
Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00
AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor
$245.99
AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor
$189.99
Microsoft Surface Go 2 Laptop Core i5 1135G7 2.4GHz 8GB 128GB SSD
$179.99
HP Pavilion Laptop Computer 15.6 8-Core Intel i3 8GB RAM 628GB Storage, Open Box
$299.00
Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11
$250.00