سلام
من وقتی دستور make defconfig-wifi رو میزنم پیغام زیر رو میده :
/--------------
| Your kernel headers are incomplete/not installed.
| Please install kernel headers, including a .config
| file or use the KLIB/KLIB_BUILD make variables to
| set the kernel to build against, e.g.
| make KLIB=/lib/modules/3.1.7/
| to compile/install for the installed kernel 3.1.7
| (that isn't currently running.)
\--
Makefile:40: recipe for target 'defconfig-ath' failed
make: [defconfig-ath] Error 1
برای رفع این ارور چه کاری انجام بدم ؟!؟
کامند apt-cache search linux-headers رو مزنم و آخرین نسخه رو انتخاب میکنم ، پیغام میده که جدیدترین نسخه نصب هست !
خروجی دستورات برای بررسی بهتر :
root@network99:~# apt-cache search linux-headers
aufs-dkms - DKMS files to build and install aufs
linux-headers-4.9.0-kali2-all - All header files for Linux 4.9 (meta-package)
linux-headers-4.9.0-kali2-all-amd64 - All header files for Linux 4.9 (meta-package)
linux-headers-4.9.0-kali2-amd64 - Header files for Linux 4.9.0-kali2-amd64
linux-headers-4.9.0-kali2-common - Common header files for Linux 4.9.0-kali2
linux-headers-4.9.0-kali2-common-rt - Common header files for Linux 4.9.0-kali2-rt
linux-headers-4.9.0-kali2-rt-amd64 - Header files for Linux 4.9.0-kali2-rt-amd64
linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package)
linux-headers-rt-amd64 - Header files for Linux rt-amd64 configuration (meta-package)
linux-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling)
root@network99:~# apt-get install linux-headers-4.9.0-kali2-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-kali2-all is already the newest version (4.9.13-1kali1).
0 upgraded, 0 newly installed, 0 to remove and 541 not upgraded.
apt-cache search linux-image
linux-headers-4.9.0-kali2-amd64 - Header files for Linux 4.9.0-kali2-amd64
linux-headers-4.9.0-kali2-rt-amd64 - Header files for Linux 4.9.0-kali2-rt-amd64
linux-image-4.9.0-kali2-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-kali2-amd64-dbgsym - Debug symbols for linux-image-4.9.0-kali2-amd64
linux-image-4.9.0-kali2-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-kali2-rt-amd64-dbgsym - Debug symbols for linux-image-4.9.0-kali2-rt-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbgsym - Debug symbols for Linux amd64 configuration (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbgsym - Debug symbols for Linux rt-amd64 configuration (meta-package)
linux-image-4.3.0-kali1-amd64 - Linux 4.3 for 64-bit PCs
apt-get install linux-headers-4.9.0-kali2-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-kali2-amd64 is already the newest version (4.9.13-1kali1).
0 upgraded, 0 newly installed, 0 to remove and 541 not upgraded.
MyKernel :
Linux network99 4.3.0-kali1-amd64 #1 SMP Debian 4.3.3-5kali4 (2016-01-13) x86_64 GNU/Linux