在MacBook Pro上運行Ubuntu 20.04或22.04,第一次登入會發現沒有Wifi可以用,原因是驅動程式沒用好。過往安裝方式《Ubuntu 18.04用Mac啟動後Wifi不通》在執行apt指令會出現error,那是因為系統預設安裝好的驅動不適用。錯誤訊息如下:
dpkg: error processing package bcmwl-kernel-source (--configure):
subprocess installed post-installation script returned error exit status 3Errors were encountered while processing:
bcmwl-kernel-sourceE: Sub-process /usr/bin/dpkg returned an error code (1)
解決方法如下:
- sudo apt purge bcmwl-kernel-source
上述指令刪除舊的驅動之後,再用下面指令裝新的:
- sudo apt install -y broadcom-sta-source broadcom-sta-dkms broadcom-sta-common
- sudo modprobe wl
都做完之後用下列指令重開機後就可以,應該就可以在右上角的icon點進去設定wifi了。以上設定參考了裡面Kevin Bowen和Atef的回答
- DPKG error while installation bcmwl-kernel-source on ubuntu 16.04
- Losing wifi on restart [BCM4360 - 18.04 LTS]:
- BCM4360 802.11ac not working w/ 4.15.0-29-lowlatency receint update:手動裝套件
_EOF_
沒有留言:
張貼留言