Erro ao instalar o wireless-bcm43142-dkms-6.20.55.19: dependency linux-headers não é satisfatório

0

Eu tenho que instalar um arquivo .deb com o firmware da placa wifi (Este é o nome do arquivo: wireless-bcm43142-dkms-6.20.55.19_amd64.deb; Baixei o arquivo aqui: < href="http://www.filewatcher.com/m/wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb.1337086-0.html"> link ).

Quando tento instalar o arquivo .deb, clico duas vezes no arquivo, mas isso me dá este erro:

"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".

Como posso consertá-lo para que eu possa instalar o arquivo .deb?

Eu já atualizei o sistema, através dos comandos apt-get update e apt-get upgrade e apt-get dist-upgrade .

Além disso, eu também tentei instalar o linux-headers-generic (não sei se pode ser a solução) com o comando: apt-get install linux-headers-generic.

Mas isso gera esse erro:

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."

Esta é a saída de 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

Considerando a saída do 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

Aqui está o 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'
    
por user67621 14.05.2014 / 17:32

3 respostas

1

Você pode querer ver este link para um guia passo a passo. Estou copiando as etapas (com pequenas modificações) aqui, caso o link expire.

  1. Abra um terminal e execute sudo apt-get update , então %código%
  2. Ir para o diretório que contém o pacote (provavelmente sudo apt-get install linux-headers-generic build-essential dkms broadcom-sta-modules ou similar)
  3. Instale o pacote executando: %código%
  4. Ativá-lo com cd ~/downloads

Deve funcionar depois destes passos.

    
por 14.05.2014 / 18:31
1

O kali linux FAQ sugere o seguinte:

apt-get install -y linux-headers-$(uname -r)

Se isso não funcionar, eu verificaria seu arquivo /etc/apt/sources.list . Você precisa do repo principal e das atualizações, e talvez seja necessário ter contrib e non-free para os dois:

deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
    
por 14.05.2014 / 21:51
0

wireless-bcm43142 precisa de driver wl pela Broadcom. O problema com o wireless-bcm43142-dkms-6.20.55.19_amd64.deb é que você precisa consertá-lo com os patches apropriados para a sua versão do kernel.

você também precisa dos cabeçalhos do kernel correspondentes para construir o driver do kernal (wl.ko) Você pode identificar sua versão do kernel usando: uname -r

Certifique-se de ter os cabeçalhos do kernel apropriados, caso contrário você não poderá executar a compilação

para o kernel 4.0 execute os seguintes passos: -

adicione este repositório ao /etc/apt/sourrces.list: deb link principal contribuição não livre do sana

O sana é necessário para fazer o download dos cabeçalhos do kernel 4.0

executar apt-get install linux-headers- uname -r build-essential -y

faça o download do código-fonte do driver Broadcom wl de link

extraia o zip e o cd para essa pasta

aplicar todos os 9 patches

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

execute os seguintes códigos:

make

cp wl.ko /lib/modules/'uname -r'/kernel/net/wireless/

depmod

rmmod bcma

echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf

modprobe wl
    
por 21.09.2016 / 05:49