Wi-Fi 카드 펌웨어와 함께 .deb 파일을 설치해야 했습니다(파일 이름: wireless-bcm43142-dkms-6.20.55.19_amd64.deb; 여기에서 파일을 다운로드했습니다:http://www.filewatcher.com/m/wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb.1337086-0.html).
.deb 파일을 설치하려고 할 때 파일을 두 번 클릭했지만 다음 오류가 발생합니다.
"Failed to install file. Unknown error. Please refer to detailed report and report in your distribution bug tracker.
More details: This package is uninstallable. Dependency is not satisfiable: linux-headers-generic|linux-headers".
.deb 파일을 설치할 수 있도록 수정하려면 어떻게 해야 합니까?
apt-get update
명령 apt-get upgrade
과 apt-get dist-upgrade
.
또한 다음 명령을 사용하여 linux-headers-generic을 설치하려고 시도했습니다(이것이 해결책이 될 수 있는지는 모르겠습니다): apt-get install linux-headers-generic .
하지만 다음과 같은 오류가 발생합니다.
Package linux-headers-generic is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source.
E: Package "linux-headers-generic" has no installation candidate."
이것은 다음의 출력입니다 dpkg -i wireless-bcm43142-dkms-6.20.55.19_amd64.deb
.
Selecting previously unselected package wireless-bcm43142-dkms-6.20.55.19_amd64-deb
(Reading database… 347343 files and directories currently installed.)
Unpacking wireless-bcm43142-oneiric-dkms (from wireless-bcm43142-dkms-6.20.55.19_amd64.deb) …
dpkg: dependency problems prevent configuration of wireless-bcm43142-oneiric-dkms:
wireless-bcm43142-oneiric-dkms depends on linux-headers-generic | linux-headers; however:
Package linux-headers-generic is not installed.
Package linux-headers is not installed.
dpkg: error processing wireless-bcm43142-oneiric-dkms (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
wireless-bcm43142-oneiric-dkms
그리고 apt-get -f install의 출력은 다음과 같습니다.
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
linux-headers-3.2.0-4-common-rt linux-headers-3.2.0.4-rt-amd64 linux-kbuild-3.2
The following NEW packages will be installed:
linux-headers-3.2.0-4-common-rt linux-headers-3.2.0.4-rt-amd64 linux-kbuild-3.2
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 4,433 kB of archives.
After this operation, 27.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://security.debian.org/ wheezy/updates/main linux-headers-3.2.0-4-common-rt amd64 3.2.57-3+deb7u1 [3576 kB]
Get:2 http://debian.net/debian/ wheezy/ main linux-kbuild-3.2 amd64 3.2.17-1 [238 kB]
Get:3 http://security.debian.org/ wheezy/ updates/main linux-headers-3.2.0-4-rt-amd64 amd64 3.2.57-3+deb7u1 [618 kB]
Fetched 4,433 kB in 13s (325 kB/s)
Selecting previously unselected package linux-headers-3.2.0-4-common-rt.
(Reading database… 347406 files and directories currently installed.)
Unpacking linux-headers-3.2.0-4-common-rt (from .../linux-headers-3.2.0-4-common-rt_3.2.57-3+deb7u1_amd64.deb) …
Selecting previously unselected package linux-kbuild-3.2.
Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.17-1_amd64.deb) …
Selecting previously unselected package linux-headers-3.2.0-4-rt-amd64.
Unpacking linux-headers-3.2.0-4-rt-amd64 (from .../linux-headers-3.2.0-4-rt-amd64_3.2.57-3+deb7u1_amd64.deb) …
Setting up linux-headers-3.2.0-4common-rt (3.2.57-3+deb7u1) …
Setting up linux-kbuild-3.2 (3.2.17-1) …
Setting up linux-headers-3.2.0-4-rt-amd64 (3.2.57-3+deb7u1) …
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-4-rt-amd64
Setting up wireless-bcm43142-oneiric-dkms (6.20.55.19~bdcom0602.0400.1000.0400-0somerville1) …
Loading new wireless-bcm43142-oneiric-dkms-6.20.55.19~bdcom0602.0400.1000.0400 DKMS files …
First Installation: checking all kernels…
Building only for 3.12-kalil-amd64
Building for architecture x86_64
Building initial module for 3.12-kalil-amd64
Error! Bad return status for module build on kernel: 3.12-kalil-amd64 (x86_64)
Consult /var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/make.log for more information.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools…
update-initramfs: Generating /boot/initrd.img-3.12-kalil-amd64
이것은 make.log입니다:
DKMS make.log for wireless-bcm43142-oneiric-dkms-6.20.55.19~bdcom0602.0400.1000.0400 for kernel 3.12-kali1-amd64 (x86_64)
Wed May 14 10:44:27 PDT 2014
make: Entering directory `/usr/src/linux-headers-3.12-kali1-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
LD /var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/built-in.o
CC [M] /var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/src/shared/linux_osl.o
CC [M] /var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/src/wl/sys/wl_linux.o
/var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/src/wl/sys/wl_linux.c:50:24: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build/src/wl/sys/wl_linux.o] Error 1
make[2]: *** [_module_/var/lib/dkms/wireless-bcm43142-oneiric-dkms/6.20.55.19~bdcom0602.0400.1000.0400/build] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
답변1
한 번 살펴보고 싶을 수도 있습니다이 링크단계별 가이드를 받아보세요. 링크가 만료될 경우를 대비해 여기에 단계를 약간 수정하여 복사하겠습니다.
- 터미널을 열고 실행한
sudo apt-get update
다음sudo apt-get install linux-headers-generic build-essential dkms broadcom-sta-modules
- 패키지가 포함된 디렉터리로 이동합니다(어쩌면
cd ~/downloads
유사). - 다음 명령을 실행하여 패키지를 설치합니다.
sudo dpkg -i wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb
- 활성화해
sudo modprobe wl
이 단계를 거친 후에는 작동합니다.
답변2
kali linux FAQ에서는 다음을 제안합니다.
apt-get install -y linux-headers-$(uname -r)
그래도 문제가 해결되지 않으면 파일을 확인해 보겠습니다 /etc/apt/sources.list
. 기본 저장소와 업데이트가 필요하며 이에 대해 contrib 및 non-free를 제공해야 할 수도 있습니다.
deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
답변3
wireless-bcm43142에는 Broadcom의 wl 드라이버가 필요합니다. wireless-bcm43142-dkms-6.20.55.19_amd64.deb의 문제점은 커널 버전에 적합한 패치로 패치해야 한다는 것입니다.
커널 드라이버(wl.ko)를 빌드하려면 해당 커널 헤더 파일도 필요합니다. uname -r을 사용하여 커널 버전을 식별할 수 있습니다.
적절한 커널 헤더가 있는지 확인하세요. 그렇지 않으면 빌드를 수행할 수 없습니다.
커널 4.0의 경우 다음 단계를 따르십시오.
이 저장소를 /etc/apt/sources.list에 추가하십시오: debhttp://old.kali.org/kalisana의 주요 비자유 기여
4.0 커널 헤더 파일을 다운로드하려면 sana가 필요합니다.
apt-get install linux-headers- uname -r
build-essential -y 실행
Broadcom wl 드라이버 소스 코드를 다음에서 다운로드하십시오. https://github.com/gtank/broadcom-wl-dkms-4.0
이 폴더에 zip과 CD를 추출합니다.
9개 패치 모두 적용
patch -p1 < patches/wl-kmod-001_license.patch
patch -p1 < patches/wl-kmod-002_wext_workaround.patch
patch -p1 < patches/wl-kmod-003_kernel_3.8.patch
patch -p1 < patches/wl-kmod-004_kernel_3.15.patch
patch -p1 < patches/wl-kmod-005_gcc_4.9.patch
patch -p1 < patches/wl-kmod-006_kernel_3.16.patch
patch -p1 < patches/wl-kmod-007_kernel_3.17.patch
patch -p1 < patches/wl-kmod-008_kernel_3.18.patch
patch -p1 < patches/wl-kmod-009_kernel_4.0.patch
그런 다음 다음 코드를 실행합니다.
make
cp wl.ko /lib/modules/`uname -r`/kernel/net/wireless/
depmod
rmmod BCMA
echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf
modprobe wl