Wifi

重啟後Linux Wifi消失了,沒有搜尋wifi網路

  • April 28, 2020

我是kali linux的新手,在我安裝linux之後沒有wifi我使用(make unload)和(make load commands)安裝了驅動程序但是沒有wifi可以連接它說沒有網路,每當我重新啟動我的電腦時就沒有wifi,我不知道這是否是正確的安裝方式。重啟後 iwconfig 只給出 eth0 和 lo 沒有無線擴展。我用過apt-get install firmware-iwlwifi,但它給

firmware-iwlwifi is already the newest version (20170823-1)
0 upgraded 0 newly installed, 0 to remove and 0 not upgraded

請給我修復,以便我的 wifi 在重新啟動後不會被刪除,wifi 將搜尋並連接到網路。

lspcilsusb顯示

# lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM75 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
07:00.0 Network controller: Broadcom Limited BCM43142 802.11b/g/n (rev 01)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)

# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0c45:6473 Microdia 
Bus 001 Device 003: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

這個問題解決了我的 apt-get update 沒有工作並且當時給出錯誤我只是通過使用這些命令一一解決了這個問題

# sudo -i
# touch /etc/apt/sources.list
# chmod 644 /etc/apt/sources.list
# echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list
# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

之後我的 apt-get 更新工作,然後我使用這些命令並下載驅動程序並安裝

# git clone https://github.com/mehedishakeel/BroadcomInstaller2017.git

然後我在桌面上複製了下載的文件並使用了這些命令

# cd ~/Desktop/BroadcomInstaller2017/
# ls
# cat Readme.md
# chmod +x Broadcom.sh
# ./Broadcom.sh

然後它給出 3 個選項選擇 1 個選項,它將安裝 Broadcom 的 wifi 驅動程序。

我不知道這個命令是否適用於其他人,但它適用於我或者還有另一個命令。

# apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux- headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

我希望這個命令對其他人有用,現在這個問題已經結束了。

引用自:https://unix.stackexchange.com/questions/438435