Estou tentando instalar cabeçalhos Linux para Kali Linux em minha máquina e tentei todas as soluções possíveis na internet, mas sempre mostra "Não é possível localizar pacotes"; Estou seguindo as instruções de: TP-Link Archer T2U Plus também conhecido como AC600 High-Gain
└─# sudo apt install build-essential libelf-dev linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-6.1.0-kali9-amd64
E: Couldn't find any package by glob 'linux-headers-6.1.0-kali9-amd64'
Eu tentei encontrar a versão correta pelo comando:
apt-cache search linux-headers
E aí está o que eu vejo:
linux-headers-6.3.0-kali1-amd64 - Header files for Linux 6.3.0-kali1-amd64
linux-headers-6.3.0-kali1-cloud-amd64 - Header files for Linux 6.3.0-kali1-cloud-amd64
linux-headers-6.3.0-kali1-common - Common header files for Linux 6.3.0-kali1
linux-headers-6.3.0-kali1-common-rt - Common header files for Linux 6.3.0-kali1-rt
linux-headers-6.3.0-kali1-rt-amd64 - Header files for Linux 6.3.0-kali1-rt-amd64
linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package)
linux-headers-cloud-amd64 - Header files for Linux cloud-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-amd64-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-arc-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-i386-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-mips64r6-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mips64r6el-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-mipsn32-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsn32el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsn32r6-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsn32r6el-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsr6-cross - Linux Kernel Headers for development (for cross-compiling)
linux-libc-dev-mipsr6el-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-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-riscv64-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)
linux-libc-dev-x32-cross - Linux Kernel Headers for development (for cross-compiling)
uname -r:
6.1.0-kali9-amd64
um dos próximos passos como:
sudo make dkms_install
Deu-me um erro:
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source -> /usr/src/8812au-5.6.4.2_35491.20191025
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Error! Your kernel headers for kernel 6.1.0-kali9-amd64 cannot be found at /lib/modules/6.1.0-kali9-amd64/build or /lib/modules/6.1.0-kali9-amd64/source.
Please install the linux-headers-6.1.0-kali9-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.
make: *** [Makefile:1786: dkms_install] Error 1
Falta uma etapa nas instruções: você precisa garantir que seu sistema esteja atualizado. Depois de
passo, correr
Isso deve instalar o kernel mais recente; se não, você pode corrigir isso executando
Quando a atualização estiver concluída, reinicie para que seu sistema acabe executando o kernel mais recente. Então
vai funcionar.