使用一下命令查看无线网卡的版本:
sudo lshw -C network
输出1
root@1:/home/a# lshw -C network*-networkdescription: Wireless interfaceproduct: QCA6174 802.11ac Wireless Network Adaptervendor: Qualcomm Atherosphysical id: 0bus info: pci@0000:01:00.0logical name: wlp1s0version: 32serial: e4:aa:ea:4f:a3:a1width: 64 bitsclock: 33MHzcapabilities: pm msi pciexpress bus_master cap_list ethernet physical wirelessconfiguration: 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.11resources: irq:61 memory:c0200000-c03fffff*-networkdescription: Ethernet interfacephysical id: 8bus info: usb@2:3.4logical name: enx00e04c8074fcserial: 00:e0:4c:80:74:fcsize: 1Gbit/scapacity: 1Gbit/scapabilities: ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiationconfiguration: 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 controllerproduct: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controllervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:03:00.0version: 03width: 64 bitsclock: 33MHzcapabilities: pm msi pciexpress msix vpd bus_master cap_listconfiguration: latency=0resources: ioport:d800(size=256) memory:f8fff000-f8ffffff memory:f8ff8000-f8ffbfff memory:f9ee0000-f9efffff*-network UNCLAIMEDdescription: Network controllerproduct: RTL8812AE 802.11ac PCIe Wireless Network Adaptervendor: Realtek Semiconductor Co., Ltd.physical id: 0bus info: pci@0000:02:00.0version: 01width: 64 bitsclock: 33MHzcapabilities: pm msi pciexpress bus_master cap_listconfiguration: latency=0
提供网络驱动程序的软件包是 linux-modules-extra。由于不明白的原因,它没有安装在更新中。查看ubuntu内核版本:
uname -r
在ubuntu官网中(下载地址)下载对应的包,将其下载到其他计算机上,并使用 USB 密钥或类似设备进行传输。将其拖放到 Ubuntu 计算机的桌面上。现在,在终端中:
cd ~/Desktop
sudo dpkg -i linux*.deb
sudo reboot