即使路由器重新配置后,Ubuntu Wifi 仍会不断重新连接

即使路由器重新配置后,Ubuntu Wifi 仍会不断重新连接

我安装了 ubuntu 20.04,对于特定的 Wifi 连接(我家里的那个),我遇到了以下问题:wifi 会在一段时间后(大概每 3 或 5 分钟)断开连接并重新连接。

这是我所做的:

  1. 我将路线设置更改为如下:

在此处输入图片描述

  1. 我检查了我的 iwconfig 输出:如下所示,电源管理已经关闭

在此处输入图片描述

  1. 这是我的尾巴 -f /var/log/syslog
    Sep  5 08:07:19 myusername-Aspire-E5-574G kernel: [ 1645.645441] wlp3s0: association with b8:d5:26:1b:c9:d2 timed out
    Sep  5 08:07:19 myusername-Aspire-E5-574G wpa_supplicant[1011]: wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TISCALI_C9D2" auth_failures=1 duration=10 reason=CONN_FAILED
    Sep  5 08:07:19 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286039.6381] device (wlp3s0): supplicant interface state: associating -> disconnected
    Sep  5 08:07:19 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286039.6382] device (p2p-dev-wlp3s0): supplicant management interface state: associating -> disconnected
    Sep  5 08:07:24 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286044.6444] device (wlp3s0): supplicant interface state: disconnected -> scanning
    Sep  5 08:07:24 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286044.6446] device (p2p-dev-wlp3s0): supplicant management interface state: disconnected -> scanning
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <warn>  [1599286048.1436] device (wlp3s0): link timed out.
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.1459] device (wlp3s0): state change: activated -> failed (reason 'supplicant-timeout', sys-iface-state: 'managed')
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.1496] manager: NetworkManager state is now DISCONNECTED
    Sep  5 08:07:28 myusername-Aspire-E5-574G gnome-shell[12863]: An active wireless connection, in infrastructure mode, involves no access point?
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <warn>  [1599286048.1733] device (wlp3s0): Activation: failed for connection 'TISCALI_C9D2'
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.1806] device (wlp3s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Withdrawing address record for fe80::486a:a6d:b0f5:5284 on wlp3s0.
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::486a:a6d:b0f5:5284.
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Interface wlp3s0.IPv6 no longer relevant for mDNS.
    Sep  5 08:07:28 myusername-Aspire-E5-574G gnome-shell[12863]: An active wireless connection, in infrastructure mode, involves no access point?
    Sep  5 08:07:28 myusername-Aspire-E5-574G gnome-shell[12863]: An active wireless connection, in infrastructure mode, involves no access point?
    Sep  5 08:07:28 myusername-Aspire-E5-574G dbus-daemon[989]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0 pid=990 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
    Sep  5 08:07:28 myusername-Aspire-E5-574G systemd[1]: Starting Network Manager Script Dispatcher Service...
    Sep  5 08:07:28 myusername-Aspire-E5-574G google-chrome.desktop[35179]: Fontconfig error: Cannot load default config file: No such file: (null)
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.2275] dhcp4 (wlp3s0): canceled DHCP transaction
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.2276] dhcp4 (wlp3s0): state changed bound -> done
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.2278] dhcp6 (wlp3s0): canceled DHCP transaction
    Sep  5 08:07:28 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286048.2278] dhcp6 (wlp3s0): state changed unknown -> done
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Withdrawing address record for 192.168.1.46 on wlp3s0.
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.46.
    Sep  5 08:07:28 myusername-Aspire-E5-574G avahi-daemon[984]: Interface wlp3s0.IPv4 no longer relevant for mDNS.
    Sep  5 08:07:28 myusername-Aspire-E5-574G dbus-daemon[989]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    Sep  5 08:07:28 myusername-Aspire-E5-574G systemd[1]: Started Network Manager Script Dispatcher Service.
    Sep  5 08:07:28 myusername-Aspire-E5-574G gnome-shell[12863]: An active wireless connection, in infrastructure mode, involves no access point?
    Sep  5 08:07:28 myusername-Aspire-E5-574G gnome-shell[12863]: message repeated 5 times: [ An active wireless connection, in infrastructure mode, involves no access point?]
    Sep  5 08:07:29 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286049.2172] policy: auto-activating connection 'TISCALI_C9D2' (3a893e63-7e87-40eb-afd9-4c7549434712)
    Sep  5 08:07:29 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286049.2178] device (wlp3s0): Activation: starting connection 'TISCALI_C9D2' (3a893e63-7e87-40eb-afd9-4c7549434712)
    Sep  5 08:07:29 myusername-Aspire-E5-574G NetworkManager[990]: <info>  [1599286049.2179] device (wlp3s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')

在其他任何 wifi 连接中都不会发生这种情况,我的 Windows 和 Android 设备在同一个 Wifi 网络中运行正常。我必须进行什么配置才能让我的 Ubuntu 在 wifi 中运行吗?

答案1

根据tail -f /var/log/syslog路由器配置的输出和更改,我假设网络管理器中的 WiFi 配置未正确更改。 解决此问题的方法很简单,只需:

  1. nm-connection-editor在终端上打开
  2. 选择并删除 WiFi 连接
  3. 从一开始就连接到同一个 WiFi

答案2

答案正确。

我只想添加一个步骤:重新启动 NetworkManager。只有完成这一步后,我的网络才能恢复稳定。

我正在使用带有 MESH 设置的 20.04.5 LTS。

相关内容