Debian 中的 Broadcom wi-fi 卡驅動程式問題

Debian 中的 Broadcom wi-fi 卡驅動程式問題

我的筆記型電腦是 HP 250 G4 P5T98ES

我的作業系統是:Debian jessie 20160917

當我從 live-usb 安裝 Debian 時,它告訴我它無法連接到無線網絡,因為它沒有非免費驅動程式。所以我決定稍後再安裝驅動程式。我從 debian 網站下載了無線驅動程式(實際上,我下載了整個非免費韌體包。然後我在終端中以 su 模式運行命令:

dpkg -i firmware-brcm80211_0.43_all.deb

輸出表明它已成功安裝(或類似的內容)。然後我跑了:

dpkg -l firmware-brcm80211

它給了我以下輸出:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
ii  firmware-brcm80211              0.43                 all                  Binary firmware for Broadcom 802.11 wireless cards

我已經重新啟動系統,但在網路設定中我仍然只看到兩個選項:有線和網路代理。

root@debian:/home# lspci -nnk | grep -i net -A2
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
        Subsystem: Hewlett-Packard Company Device [103c:80c2]
        Kernel driver in use: r8169
--
13:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
        Subsystem: Hewlett-Packard Company Device [103c:804a]
        Kernel driver in use: bcma-pci-bridge

新增此行後:

deb http://httpredir.debian.org/debian/ jessie main contrib non-free

到 /etc/apt/sources.list , apt-get 更新失敗:

root@debian:/home/alexander# apt-get update
Err http://httpredir.debian.org jessie InRelease

Err http://httpredir.debian.org jessie Release.gpg
  Could not resolve 'httpredir.debian.org'
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie InRelease
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie Release.gpg
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie Release
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie/main amd64 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie/main Translation-en_US
Ign cdrom://[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07] jessie/main Translation-en
Reading package lists... Done
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease  

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg  Could not resolve 'httpredir.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:/home/alexander# apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package broadcom-sta-dkms

我的 /etc/apt/sources.list 現在看起來像這樣:

# 

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07]/ jessie main

deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160917-15:07]/ jessie main

deb http://httpredir.debian.org/debian/ jessie main contrib non-free

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ jessie/updates main
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ jessie/updates main

透過從包含韌體的 live-cd 版本安裝 debian 解決了問題。現在我有無線網路了。

答案1

您正在安裝錯誤的司機為您的卡。

你有BCM43142 802.11b/g/n [14e4:4365]使用該wl模組的。

請閱讀以下內容:Debian 官方文檔

您可以在哪裡找到有關如何安裝(正確的)驅動程式的資訊:

將「非自由」元件加入到您的 Debian 版本的 /etc/apt/sources.list 中,例如:

# Debian 8 "Jessie" deb http://httpredir.debian.org/debian/ jessie main contrib non-free

更新可用套件的清單。安裝相關/最新的 linux-image、linux-headers 和 Broadcom-sta-dkms 軟體包:

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

這也將安裝建議的無線工具包。 DKMS 將為您的系統建置 wl 模組。

卸載衝突的模組:

# modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

載入wl模組:

# modprobe wl

答案2

wifiBCM43142在目前核心版本下有bug 3.16,你可以閱讀@Stephen Kitt的評論Debian 錯誤報告這裡,我建議編譯3.2.82版本,然後按照描述的步驟安裝您的驅動程式這裡。您也可以從向後移植的4.6版本安裝新核心4.7

編輯

按照這個回答修復你的sources.list第一個 .

相關內容