![Kubuntu 20.04 中 Wi-Fi 消失](https://linux22.com/image/1020936/Kubuntu%2020.04%20%E4%B8%AD%20Wi-Fi%20%E6%B6%88%E5%A4%B1.png)
我遇到了一个让我抓狂的问题。我是 Linux 世界的新手,删除了 Win10,重新安装到 Kubuntu,但一直存在一个问题:在不可预测的时间段内 Wi-Fi 会掉线,点击 Wi-Fi 图标不会显示周围的网络列表,只有重启才能解决问题。我妻子有另一台使用 Win10 的笔记本电脑,她连接到同一个 Wi-Fi 点,一切都很好 — 这不是路由器的问题。
KDE Plasma 版本:5.18.5
KDE Frameworks 版本:5.68.0
Qt 版本:5.12.8
内核版本:5.4.0-56-generic
我尝试过的:
从 Github 重新安装 Qualcomm Atheros QCA9377 的驱动程序
重新安装所有 Ubuntu 软件包 →
sudo apt-get clean
将以下内容粘贴到 reinstall_all.sh 中
#!/bin/bash for pkg in dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)' ; do apt-get -y --force-yes install --reinstall $pkg ; done sudo chown root:root reinstall_all.sh sudo chmod 755 reinstall_all.sh sudo ./reinstall_all.sh
sudo apt-get install --reinstall bcmwl-kernel-source
但是我遇到了同样的错误,请帮帮我。
安全启动已禁用
sudo service network-manager restart
不起作用
sudo lshw -C network
显示:
-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: enp4s0
version: 10
serial: 54:e1:ad:c1:72:f2
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 1000b
t-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multi
cast=yes port=MII
resources: irq:18 ioport:c000(size=256) memory:f4204000-f4204fff memory:f4200000-
f4203fff
*-network
description: Wireless interface
product: QCA9377 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:05:00.0
logical name: wlp5s0
version: 31
serial: d4:6a:6a:df:05:13
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=5.4.0-56-generic firmware=WLAN.TF.2.1-00021-QCARMSWP-1 ip=
192.168.50.57 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:132 memory:f4000000-f41fffff
nmcli device show wlp5s0 | grep IP4.DNS
显示:
IP4.DNS[1]: 8.8.8.8
ifconfig
显示:
enp4s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 54:e1:ad:c1:72:f2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2014 bytes 149738 (149.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2014 bytes 149738 (149.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.50.57 netmask 255.255.255.0 broadcast 192.168.50.255
inet6 fe80::c5b:e24:ce0d:5122 prefixlen 64 scopeid 0x20<link>
ether d4:6a:6a:df:05:13 txqueuelen 1000 (Ethernet)
RX packets 66135 bytes 60494402 (60.4 MB)
RX errors 0 dropped 1271 overruns 0 frame 0
TX packets 35370 bytes 6700045 (6.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
更新。
journalctl -u NetworkManager -f
-- Logs begin at Fri 2020-11-06 00:29:55 EET. --
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5158] dhcp4 (wlp5s0): option wpad => ''
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5158] dhcp4 (wlp5s0): state changed unknown -> bound
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5170] device (wlp5s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5510] device (wlp5s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5514] device (wlp5s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5519] manager: NetworkManager state is now CONNECTED_LOCAL
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5539] manager: NetworkManager state is now CONNECTED_SITE
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5541] policy: set 'Bifrost' (wlp5s0) as default for IPv4 routing and DNS
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5547] device (wlp5s0): Activation: successful, device activated.
дек 12 18:57:32 zephyr-ThinkPad-E470 NetworkManager[794]: <info> [1607792252.5561] manager: NetworkManager state is now CONNECTED_GLOBAL
journalctl -u wpa_supplicant -f
-- Logs begin at Fri 2020-11-06 00:29:55 EET. --
дек 12 18:57:18 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
дек 12 18:57:18 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: WPS-PBC-ACTIVE
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: SME: Trying to authenticate with a8:5e:45:76:09:84 (SSID='Bifrost' freq=5200 MHz)
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: Trying to associate with a8:5e:45:76:09:84 (SSID='Bifrost' freq=5200 MHz)
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: Associated with a8:5e:45:76:09:84
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=GB
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: WPA: Key negotiation completed with a8:5e:45:76:09:84 [PTK=CCMP GTK=CCMP]
дек 12 18:57:32 zephyr-ThinkPad-E470 wpa_supplicant[832]: wlp5s0: CTRL-EVENT-CONNECTED - Connection to a8:5e:45:76:09:84 completed [id=0 id_str=]
journalctl -p err
дек 12 00:56:31 zephyr-ThinkPad-E470 [440388]: Failed to execute /usr/lib/systemd/system-sleep/wififix: Exec format error
дек 12 00:56:31 zephyr-ThinkPad-E470 [440385]: /usr/lib/systemd/system-sleep/wififix failed with exit status 1.
дек 12 10:58:21 zephyr-ThinkPad-E470 [440507]: Failed to execute /usr/lib/systemd/system-sleep/wififix: Exec format error
дек 12 10:58:22 zephyr-ThinkPad-E470 [440504]: /usr/lib/systemd/system-sleep/wififix failed with exit status 1.
дек 12 11:02:40 zephyr-ThinkPad-E470 pulseaudio[1390]: Error opening PCM device front:2: No such file or directory
дек 12 11:02:40 zephyr-ThinkPad-E470 pulseaudio[1390]: Error opening PCM device front:0: No such file or directory
дек 12 11:02:40 zephyr-ThinkPad-E470 pulseaudio[1390]: Error opening PCM device hw:1: No such file or directory
дек 12 11:02:40 zephyr-ThinkPad-E470 pulseaudio[1390]: Error opening PCM device front:0: No such file or directory
-- Reboot --
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: Initramfs unpacking failed: Decoding failed
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] No Caching mode page found
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Wrong diagnostic page; asked for 1 got 8
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to get diagnostic page 0x1
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to bind enclosure -19
дек 12 11:03:27 zephyr-ThinkPad-E470 kernel: usb 1-4.1.4: device descriptor read/all, error -110
дек 12 11:03:43 zephyr-ThinkPad-E470 sddm-helper[1085]: gkr-pam: unable to locate daemon control file
дек 12 14:44:54 zephyr-ThinkPad-E470 pulseaudio[1093]: Error opening PCM device hw:1: No such file or directory
дек 12 14:44:54 zephyr-ThinkPad-E470 pulseaudio[1093]: Error opening PCM device front:0: No such file or directory
дек 12 14:45:13 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 14:45:19 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 14:45:23 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 14:45:23 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to reset chip: -5
дек 12 14:45:23 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: Could not init hif: -5
дек 12 14:45:23 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: firmware crashed! (guid 125bef18-d3b1-46af-9866-f90babe>
дек 12 14:45:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read firmware dump area: -16
дек 12 14:45:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: Copy Engine register dump:
дек 12 14:45:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [00]: 0x00034400 4294967295 4294967295 4294967295 42949>
дек 12 14:45:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [01]: 0x00034800 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [02]: 0x00034c00 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [03]: 0x00035000 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [04]: 0x00035400 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [05]: 0x00035800 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [06]: 0x00035c00 4294967295 4294967295 4294967295 42949>
дек 12 14:45:30 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [07]: 0x00036000 4294967295 4294967295 4294967295 42949>
-- Reboot --
дек 12 14:46:08 zephyr-ThinkPad-E470 kernel: Initramfs unpacking failed: Decoding failed
дек 12 14:46:08 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] No Caching mode page found
дек 12 14:46:08 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
дек 12 14:46:10 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Wrong diagnostic page; asked for 1 got 8
дек 12 14:46:10 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to get diagnostic page 0x1
дек 12 14:46:10 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to bind enclosure -19
дек 12 14:49:12 zephyr-ThinkPad-E470 sddm-helper[1145]: gkr-pam: unable to locate daemon control file
дек 12 18:56:00 zephyr-ThinkPad-E470 pulseaudio[1171]: Error opening PCM device hw:1: No such file or directory
дек 12 18:56:00 zephyr-ThinkPad-E470 pulseaudio[1171]: Error opening PCM device front:0: No such file or directory
дек 12 18:56:19 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 18:56:25 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 18:56:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read device register, device is gone
дек 12 18:56:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to reset chip: -5
дек 12 18:56:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: Could not init hif: -5
дек 12 18:56:29 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: firmware crashed! (guid 8f3d1755-72fd-4a8c-9a26-2f4c9ab>
дек 12 18:56:35 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: failed to read firmware dump area: -16
дек 12 18:56:35 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: Copy Engine register dump:
дек 12 18:56:35 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [00]: 0x00034400 4294967295 4294967295 4294967295 42949>
дек 12 18:56:35 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [01]: 0x00034800 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [02]: 0x00034c00 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [03]: 0x00035000 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [04]: 0x00035400 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [05]: 0x00035800 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [06]: 0x00035c00 4294967295 4294967295 4294967295 42949>
дек 12 18:56:36 zephyr-ThinkPad-E470 kernel: ath10k_pci 0000:05:00.0: [07]: 0x00036000 4294967295 4294967295 4294967295 42949>
-- Reboot --
дек 12 18:57:14 zephyr-ThinkPad-E470 kernel: Initramfs unpacking failed: Decoding failed
дек 12 18:57:14 zephyr-ThinkPad-E470 kernel: usb 1-4.1.4: language id specifier not provided by device, defaulting to English
дек 12 18:57:14 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] No Caching mode page found
дек 12 18:57:14 zephyr-ThinkPad-E470 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
дек 12 18:57:15 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Wrong diagnostic page; asked for 1 got 8
дек 12 18:57:15 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to get diagnostic page 0x1
дек 12 18:57:15 zephyr-ThinkPad-E470 kernel: scsi 2:0:0:1: Failed to bind enclosure -19
дек 12 18:57:27 zephyr-ThinkPad-E470 sddm-helper[1094]: gkr-pam: unable to locate daemon control file
答案1
如果你尝试:$ pkill -f wpa_supplicant
运行之前:$ service network-manager restart
我见过类似的问题。有时,当驱动程序得不到很好的支持或配置不正确时,就会出现问题。NetworkManager 会定期执行后台例程,在该例程中,它会执行后台网络扫描、清除连接并重新连接。如果配置不正确,NetworkManager 会过于频繁地执行此例程,看起来就像连接不断断开一样。
让我们弄清楚你的系统到底发生了什么。我们需要查看 中的系统日志。通过运行以下命令来监控journactl
日志:NetworkManager
wpa_supplicant
$ journalctl -u NetworkManager -f
$ journalctl -u wpa_supplicant -f
常见系统错误:
$ journalctl -p err
在此处发布您在断开连接错误期间收到的日志。