使用一下命令查看无线网卡的版本:

sudo lshw -C network

输出1

root@1:/home/a# lshw -C network
  *-network
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 32
       serial: e4:aa:ea:4f:a3:a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=5.19.0-40-generic firmware=WLAN.RM.2.0-00180-QCARMSWPZ-1 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:61 memory:c0200000-c03fffff
  *-network
       description: Ethernet interface
       physical id: 8
       bus info: usb@2:3.4
       logical name: enx00e04c8074fc
       serial: 00:e0:4c:80:74:fc
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v2.16.3 (2022/07/06) duplex=full ip=192.168.3.148 link=yes multicast=yes port=MII speed=1Gbit/s 

其中product输出网卡的类型,到GitHub上查询QCA6174 ,找到编程语言为Shell的包(不要下载c以及其他的),复制到ubuntu中,安装驱动:

sudo su ./ath10k-firmware-fixer.sh

输出2

*-network UNCLAIMED       
   description: Ethernet controller
   product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:03:00.0
   version: 03
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list
   configuration: latency=0
   resources: ioport:d800(size=256) memory:f8fff000-f8ffffff memory:f8ff8000-f8ffbfff memory:f9ee0000-f9efffff


 *-network UNCLAIMED
   description: Network controller
   product: RTL8812AE 802.11ac PCIe Wireless Network Adapter
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:02:00.0
   version: 01
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list
   configuration: latency=0

提供网络驱动程序的软件包是 linux-modules-extra。由于不明白的原因,它没有安装在更新中。查看ubuntu内核版本:

uname -r

在ubuntu官网中(下载地址)下载对应的包,将其下载到其他计算机上,并使用 USB 密钥或类似设备进行传输。将其拖放到 Ubuntu 计算机的桌面上。现在,在终端中:

cd ~/Desktop
sudo dpkg -i linux*.deb
sudo reboot
11-29 06:26