Kali Linux 헤더를 설치할 수 없습니다.

Kali Linux 헤더를 설치할 수 없습니다.

내 컴퓨터에 Kali Linux의 Linux 헤더를 설치하려고 하며 인터넷에서 가능한 모든 솔루션을 시도했지만 항상 "패키지를 찾을 수 없습니다"라는 메시지가 표시됩니다.TP-Link Archer T2U Plus(AC600 하이 게인이라고도 함)

└─# 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'

다음 명령을 통해 올바른 버전을 찾으려고 했습니다.

apt-cache search linux-headers

내가 보는 것은:

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)

이름-r:

6.1.0-kali9-amd64

다음 단계는 다음과 같습니다.

sudo make dkms_install

나에게 오류가 발생했습니다.

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

고쳐 쓰다:스크린샷

답변1

지침에 누락된 단계가 있습니다. 시스템이 최신 상태인지 확인해야 합니다.

sudo apt update

발걸음, 달리다

sudo apt upgrade

최신 커널을 설치해야 합니다. 그렇지 않은 경우 다음을 실행하여 문제를 해결할 수 있습니다.

sudo apt install linux-image-amd64

업그레이드가 완료되면 재부팅하여 시스템이 최종적으로 최신 커널을 실행하도록 하세요. 그 다음에

sudo apt install build-essential libelf-dev linux-headers-$(uname -r)

작동합니다.

관련 정보