未找到 Wi-Fi 适配器 - Ubuntu 18.04.2 LTS

未找到 Wi-Fi 适配器 - Ubuntu 18.04.2 LTS

不知道发生了什么,但我无法再使用我的 PCI wifi 适配器。有什么想法吗?非常感谢您提供的任何帮助或指导。

Ubuntu 18.04.2 LTS

lshw-C 网络结果:

*-network DISABLED        
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: 68:1c:a2:06:2d:99
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.15.0-48-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:fdec0000-fdedffff memory:fde00000-fde0ffff

rfkill 列表结果:

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

**Within settings**:

No wi-fi adapter found 

sudo lshw -C 网络

  *-network DISABLED        
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: 68:1c:a2:06:2d:99
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.15.0-48-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:fdec0000-fdedffff memory:fde00000-fde0ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 0c
       serial: 40:8d:5c:74:2d:91
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.86.71 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:18 ioport:de00(size=256) memory:fdcff000-fdcfffff memory:fdbfc000-fdbfffff

猫/等/网络/接口

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

猫/etc/netplan/*.yaml

cat: '/etc/netplan/*.yaml': No such file or directory

nmcli 设备显示 wlan0

注意:我尝试了 nmcli device show wlan0 | grep IP4.DNS,但没有任何显示

GENERAL.DEVICE:                         wlan0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         68:1C:A2:06:2D:99
GENERAL.MTU:                            1500
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --

sudo lshw -short -class 网络

H/W path            Device      Class       Description
=======================================================
/0/100/5/0          wlan0       network     AR93xx Wireless Network Adapter
/0/100/6/0          eth0        network     RTL8111/8168/8411 PCI Express Gigabi

lspci-k|grep-A

grep: option requires an argument -- 'A'
Usage: grep [OPTION]... PATTERN [FILE]...

-i“网络控制器”

-i: command not found

ls -l /etc/resolv.conf

lrwxrwxrwx 1 root root 29 Jan 31  2016 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

ls-al/etc/netplan

total 16
drwxr-xr-x   2 root root  4096 Nov 21 13:42 .
drwxr-xr-x 158 root root 12288 Apr  4 22:42 ..

sudo ifconfig wlan0 启动

无任何显示

升级后开始产生这种影响(我假设 - 没有立即注意到,但不久前进行了升级)。


ubuntu@ubuntu:~$ sudo pico /etc/netplan/config.yaml [sudo] ubuntu 的密码: ubuntu@ubuntu:~$ sudo netplan --debug generate

DEBUG:command generate: running ['/lib/netplan/generate']
** (generate:19312): DEBUG: 21:03:25.159: Processing input file /etc/netplan/config.yaml..
** (generate:19312): DEBUG: 21:03:25.159: starting new processing pass
** (generate:19312): DEBUG: 21:03:25.159: Generating output files..

ubuntu@ubuntu:~$ sudo netplan apply ubuntu@ubuntu:~$ sudo lshw -C 网络

*-network                 
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: 68:1c:a2:06:2d:99
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.15.0-48-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:fdec0000-fdedffff memory:fde00000-fde0ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 0c
       serial: 40:8d:5c:74:2d:91
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.86.71 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:18 ioport:de00(size=256) memory:fdcff000-fdcfffff memory:fdbfc000-fdbfffff

4月9日 9:13CT

lspci -k | grep -A 4 -i “网络控制器”

03:00.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)
    Subsystem: Qualcomm Atheros AR93xx Wireless Network Adapter
    Kernel driver in use: ath9k
    Kernel modules: ath9k, wl
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

rfkill 解除全部阻止

sudo lshw -C 网络

  *-network DISABLED        
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: 68:1c:a2:06:2d:99
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.15.0-48-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:17 memory:fdec0000-fdedffff memory:fde00000-fde0ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 0c
       serial: 40:8d:5c:74:2d:91
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.86.71 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:18 ioport:de00(size=256) memory:fdcff000-fdcfffff memory:fdbfc000-fdbfffff

4 月 11 日晚上 10:21(中部时间)

重新安装 WiFi 卡并拍摄以下屏幕截图: 没有无线网络

答案1

terminal...

sudo pico /etc/netplan/config.yaml# 创建/编辑文件

使用复制/粘贴输入以下文本...

network:
  version: 2
  renderer: NetworkManager

保存文件。退出编辑器。

sudo netplan --debug generate# 生成配置文件

sudo netplan apply# 应用配置

sudo lshw -C network# 检查 wlan0 是否未被禁用

将上述三个命令的输出复制/粘贴到您的问题中,以便我查看。

reboot# 重启计算机

使用标准 NetworkManager GUI 菜单检查无线操作。

更新#1:

重新安装 PCI 无线卡。

检查您是否有用于启用/禁用无线的功能键。

检查以确保飞行模式已关闭...

在此处输入图片描述

答案2

如果您的笔记本电脑在没有充电的情况下放置了一段时间后,Wi-Fi 却神秘地消失得无影无踪,并且尽管使用了正确的、最新的驱动程序等,但仍出现了此问题中描述的症状:请检查 Ubuntu 是否只是偷偷断开了 Wi-Fi 适配器以节省电量。

转到设置的“电源”部分,检查标有无线上网关闭 Wi-Fi 以节省电量”被转向

在此处输入图片描述

这里的标签是可能会造成混淆。 这是Wi-Fi 开关,并且它可能会被操作系统自动关闭以节省电量。不是控制“关闭Wi-Fi以节省电量”功能。

  • 如果此开关,Wi-Fi 正常开启
  • 如果此开关离开,Wi-Fi 将被完全禁用并从您通常用来管理 Wi-Fi 的地方消失。
    • Wi-Fi 设置只显示“未找到 Wi-Fi 适配器”
    • 右上方的系统托盘交替显示“飞行模式”图标,禁用飞行模式时不会恢复 wifi,并且根本没有提到 wifi,就好像这是一台没有 wifi 适配器的笔记本电脑一样,
    • nmcli device status根本没有列出“wi-fi”设备
  • 看起来没有简单的控件可以禁用禁用 Wi-Fi 以节省电量的功能(如果我找到一个我会编辑它)

更新:这个方法对我有用过几次,但刚才我遇到了同样的问题,即 WiFi 在挂起后消失,但这次 WiFi 选项甚至在“电源”设置屏幕中丢失。没有任何内容ifconfig -a(缺少wlo1条目),或rfkill list(仅显示蓝牙,缺少Wireless LAN条目),或sudo lshw -C network(仅列出以太网,缺少Wireless interface条目)。

这次对我来说唯一有用的方法就是重新启动笔记本电脑。

答案3

已解决 — 操作系统固定问题点发布版(18.04.3 LTS)。

相关内容