current position:Home>Ubuntu 16 wireless network card model query and driver installation, Lenovo g400 bcm43142 network card WiFi

Ubuntu 16 wireless network card model query and driver installation, Lenovo g400 bcm43142 network card WiFi

2022-04-29 09:15:49qq_ forty million two hundred and forty-seven thousand eight hu

I failed to follow the following steps , If you come in accidentally, you can disperse .

Step one : Query the wireless network card model .

~$ lspci | grep -i net
[email protected]:~$ lspci | grep -i net
02:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10)
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)

Network controller The beginning is the wireless network card

Step two
If it's the same model as mine , Just the following code , Forget it if it's different

sudo apt-get install linux-headers-generic build-essential dkms
 
sudo apt-get update 
 
sudo apt-get install linux-source
 
sudo apt-get install --reinstall bcmwl-kernel-source
 
sudo modprobe wl

 Insert picture description here
 Insert picture description here

 Insert picture description here
 Insert picture description here

Refer to this article
https://blog.csdn.net/qq_37018566/article/details/89378066
Process record

[email protected]:~$ lspci | grep -i net
02:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10)
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)
[email protected]:~$ sudo apt-get install linux-headers-generic build-essential dkms
[sudo] kobosp  Password : 
1 I'm sorry , Please try again .
[sudo] kobosp  Password : 
 Reading package list ...  complete 
 Analyzing package dependency tree        
 Reading status information ...  complete        
build-essential  It's the latest edition  (12.1ubuntu2).
 The following packages are installed automatically and are no longer needed :
  snapd-login-service
 Use 'sudo apt autoremove' To uninstall it ( they ).
 The following software will be installed at the same time :
  linux-headers-4.4.0-201 linux-headers-4.4.0-201-generic
 The following 【 new 】 The package will be installed :
  dkms linux-headers-4.4.0-201 linux-headers-4.4.0-201-generic
  linux-headers-generic
 The upgrade  0  Software package , New installation  4  Software package , To uninstall  0  Software package , Yes  0  Packages not upgraded .
 Need to download  10.9 MB  The filing of .
 After decompression, it will consume  79.3 MB  Extra space .
 Would you like to continue ? [Y/n] Y
 obtain :1 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 dkms all 2.2.0.3-2ubuntu11.8 [66.4 kB]
 obtain :2 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-201 all 4.4.0-201.233 [10.0 MB]
 obtain :3 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-201-generic amd64 4.4.0-201.233 [813 kB]
 obtain :4 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.201.207 [2,298 B]
 Downloaded  10.9 MB, Time consuming  5 second  (1,894 kB/s)             
 Selecting unselected packages  dkms.
( Reading database  ...  The system currently has  207185  Two files and directories .)
 Just about to unpack  .../dkms_2.2.0.3-2ubuntu11.8_all.deb  ...
 Unpacking  dkms (2.2.0.3-2ubuntu11.8) ...
 Selecting unselected packages  linux-headers-4.4.0-201.
 Just about to unpack  .../linux-headers-4.4.0-201_4.4.0-201.233_all.deb  ...
 Unpacking  linux-headers-4.4.0-201 (4.4.0-201.233) ...
 Selecting unselected packages  linux-headers-4.4.0-201-generic.
 Just about to unpack  .../linux-headers-4.4.0-201-generic_4.4.0-201.233_amd64.deb  ...
 Unpacking  linux-headers-4.4.0-201-generic (4.4.0-201.233) ...
 Selecting unselected packages  linux-headers-generic.
 Just about to unpack  .../linux-headers-generic_4.4.0.201.207_amd64.deb  ...
 Unpacking  linux-headers-generic (4.4.0.201.207) ...
 Processing for  man-db (2.7.5-1)  The trigger of  ...
 Setting up  dkms (2.2.0.3-2ubuntu11.8) ...
 Setting up  linux-headers-4.4.0-201 (4.4.0-201.233) ...
 Setting up  linux-headers-4.4.0-201-generic (4.4.0-201.233) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 4.4.0-201-generic
   ...done.
 Setting up  linux-headers-generic (4.4.0.201.207) ...
[email protected]:~$ sudo apt-get update 
 hit :1 http://mirrors.ustc.edu.cn/ubuntu xenial InRelease
 hit :2 http://mirrors.ustc.edu.cn/ubuntu xenial-updates InRelease     
 hit :3 http://dl.google.com/linux/chrome/deb stable InRelease         
 hit :4 http://mirrors.ustc.edu.cn/ubuntu xenial-backports InRelease
 hit :5 http://mirrors.ustc.edu.cn/ubuntu xenial-security InRelease
 obtain :6 http://mirrors.ustc.edu.cn/ubuntu xenial/main Translation-zh_CN [74.8 kB]
 obtain :7 http://mirrors.ustc.edu.cn/ubuntu xenial/restricted Translation-zh_CN [1,652 B]
 obtain :8 http://mirrors.ustc.edu.cn/ubuntu xenial/universe Translation-zh_CN [172 kB]
 obtain :9 http://mirrors.ustc.edu.cn/ubuntu xenial/multiverse Translation-zh_CN [4,984 B]
 Downloaded  253 kB, Time consuming  0 second  (314 kB/s)                                    
 Reading package list ...  complete 
[email protected]:~$ sudo apt-get install linux-source
 Reading package list ...  complete 
 Analyzing package dependency tree        
 Reading status information ...  complete        
 The following packages are installed automatically and are no longer needed :
  snapd-login-service
 Use 'sudo apt autoremove' To uninstall it ( they ).
 The following software will be installed at the same time :
  linux-source-4.4.0
 Proposed installation :
  libncurses-dev | ncurses-dev kernel-package libqt3-dev
 The following 【 new 】 The package will be installed :
  linux-source linux-source-4.4.0
 The upgrade  0  Software package , New installation  2  Software package , To uninstall  0  Software package , Yes  0  Packages not upgraded .
 Need to download  114 MB  The filing of .
 After decompression, it will consume  133 MB  Extra space .
 Would you like to continue ? [Y/n] Y
 obtain :1 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 linux-source-4.4.0 all 4.4.0-201.233 [114 MB]
 obtain :2 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 linux-source all 4.4.0.201.207 [2,300 B]
 Downloaded  114 MB, Time consuming  60 second  (1,882 kB/s)                                 
 Selecting unselected packages  linux-source-4.4.0.
( Reading database  ...  The system currently has  234069  Two files and directories .)
 Just about to unpack  .../linux-source-4.4.0_4.4.0-201.233_all.deb  ...
 Unpacking  linux-source-4.4.0 (4.4.0-201.233) ...
 Selecting unselected packages  linux-source.
 Just about to unpack  .../linux-source_4.4.0.201.207_all.deb  ...
 Unpacking  linux-source (4.4.0.201.207) ...
 Setting up  linux-source-4.4.0 (4.4.0-201.233) ...
 Setting up  linux-source (4.4.0.201.207) ...
[email protected]:~$ sudo apt-get install --reinstall bcmwl-kernel-source
 Reading package list ...  complete 
 Analyzing package dependency tree        
 Reading status information ...  complete        
 The following packages are installed automatically and are no longer needed :
  snapd-login-service
 Use 'sudo apt autoremove' To uninstall it ( they ).
 The following 【 new 】 The package will be installed :
  bcmwl-kernel-source
 The upgrade  0  Software package , New installation  1  Software package , To uninstall  0  Software package , Yes  0  Packages not upgraded .
 Need to download  1,547 kB  The filing of .
 After decompression, it will consume  8,067 kB  Extra space .
 obtain :1 http://mirrors.ustc.edu.cn/ubuntu xenial-updates/restricted amd64 bcmwl-kernel-source amd64 6.30.223.271+bdcom-0ubuntu1~1.3 [1,547 kB]
 Downloaded  1,547 kB, Time consuming  0 second  (1,809 kB/s)         
 Selecting unselected packages  bcmwl-kernel-source.
( Reading database  ...  The system currently has  234365  Two files and directories .)
 Just about to unpack  .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.3_amd64.deb  ...
 Unpacking  bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.3) ...
 Setting up  bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.3) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
First Installation: checking all kernels...
Building for 4.15.0-45-generic and 4.15.0-132-generic
Building for architecture x86_64
Building initial module for 4.15.0-45-generic
Generating a 2048 bit RSA private key
..............+++
...............................+++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-45-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 4.15.0-132-generic
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-132-generic/updates/dkms/

depmod....

DKMS: install completed.
modprobe: ERROR: could not insert 'wl': Required key not available
update-initramfs: deferring update (trigger activated)
 Processing for  initramfs-tools (0.122ubuntu8.17)  The trigger of  ...
update-initramfs: Generating /boot/initrd.img-4.15.0-132-generic
W: Possible missing firmware /lib/firmware/amdgpu/polaris12_k_mc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/polaris10_k_mc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/polaris11_k_mc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
[email protected]:~$ sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available
[email protected]:~$ sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Required key not available
[email protected]:~$ sudo modprobe wl 00000000
modprobe: ERROR: could not insert 'wl': Required key not available
[email protected]:~$ ^C
[email protected]:~$ ^C

copyright notice
author[qq_ forty million two hundred and forty-seven thousand eight hu],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204290628411414.html

Random recommended