即使重新設定路由器後,Ubuntu Wifi 仍會持續重新連接

即使重新設定路由器後,Ubuntu Wifi 仍會持續重新連接

我安裝了 ubuntu 20.04,對於特定的 Wifi 連接(我家裡的那個),我遇到以下問題:Wifi 斷開連接並在一段時間後重新連接(可能每 3 或 5 分鐘)。

這是我所做的:

  1. 我將路線設定更改為如下:

在此輸入影像描述

  1. 我檢查了 iwconfig 輸出:如下所示,電源管理已關閉

在此輸入影像描述

  1. 這是我的 tail -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

kanzzmm2答案是正確的。

我只想新增一步驟:重新啟動 NetworkManager。只有在這一步之後我的網路才恢復穩定。

我正在使用帶有 MESH 設定的 20.04.5 LTS。

相關內容