![计算机断开 WiFi 连接并且不会自动重新连接](https://linux22.com/image/1015811/%E8%AE%A1%E7%AE%97%E6%9C%BA%E6%96%AD%E5%BC%80%20WiFi%20%E8%BF%9E%E6%8E%A5%E5%B9%B6%E4%B8%94%E4%B8%8D%E4%BC%9A%E8%87%AA%E5%8A%A8%E9%87%8D%E6%96%B0%E8%BF%9E%E6%8E%A5.png)
我正在运行 Ubuntu Desktop 19.10,主要将其用作服务器。它会定期(每隔几天)断开 wifi 连接并且无法重新连接。重新启动 wifi AP 也无济于事。只有手动重新连接/暂停和恢复/重新启动 ubuntu 才有效。
我家里的其他设备都没有同样的问题。我该如何修复它才能让它自动重新连接?
这是我在 Wi-Fi 断线时在日记中记录的内容:
Dec 09 12:19:44 dell avahi-daemon[1858]: Interface wlp3s0.IPv4 no longer relevant for mDNS.
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2641] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 09 12:19:44 dell avahi-daemon[1858]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.86.84.
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2637] device (wlp3s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Dec 09 12:19:44 dell avahi-daemon[1858]: Withdrawing address record for 192.168.86.84 on wlp3s0.
Dec 09 12:19:44 dell NetworkManager[1857]: <warn> [1575922784.2637] device (wlp3s0): no secrets: No agents were available for this request.
Dec 09 12:19:44 dell avahi-daemon[1858]: Interface wlp3s0.IPv6 no longer relevant for mDNS.
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2609] device (p2p-dev-wlp3s0): supplicant management interface state: 4-way handshake -> disconnected
Dec 09 12:19:44 dell avahi-daemon[1858]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::d624:4b28:c9fa:65e4.
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2589] manager: NetworkManager state is now CONNECTING
Dec 09 12:19:44 dell avahi-daemon[1858]: Withdrawing address record for fe80::d624:4b28:c9fa:65e4 on wlp3s0.
Dec 09 12:19:44 dell sh[2118]: sendto: Network is unreachable
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2569] dhcp4 (wlp3s0): state changed bound -> done
Dec 09 12:19:44 dell dbus-daemon[1855]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.15' (
Dec 09 12:19:44 dell whoopsie[2094]: [12:19:44] Cannot reach: https://daisy.ubuntu.com
Dec 09 12:19:44 dell whoopsie[2094]: [12:19:44] offline
Dec 09 12:19:44 dell sh[2118]: sendto: Network is unreachable
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2569] dhcp4 (wlp3s0): canceled DHCP transaction
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2568] device (wlp3s0): state change: activated -> need-auth (reason 'supplicant-disconnect', sys-iface-state: 'managed')
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2566] device (wlp3s0): Activation: (wifi) disconnected during association, asking for new key
Dec 09 12:19:44 dell NetworkManager[1857]: <info> [1575922784.2544] device (wlp3s0): supplicant interface state: 4-way handshake -> disconnected
Dec 09 12:19:44 dell wpa_supplicant[1856]: dbus: wpa_dbus_property_changed: no property SessionLength in object /fi/w1/wpa_supplicant1/Interfaces/0
Dec 09 12:19:44 dell wpa_supplicant[1856]: wlp3s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="NSA Surveillance Van" auth_failures=1 duration=10 reason=WRONG_KEY
Dec 09 12:19:44 dell NetworkManager[1857]: <warn> [1575922784.2259] sup-iface[0x55bd46b33930,wlp3s0]: connection disconnected (reason 2)
Dec 09 12:19:44 dell wpa_supplicant[1856]: wlp3s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
Dec 09 12:19:44 dell wpa_supplicant[1856]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=70:3a:cb:00:60:b1 reason=2
Dec 09 12:19:44 dell kernel: wlp3s0: deauthenticated from 70:3a:cb:00:60:b1 (Reason: 2=PREV_AUTH_NOT_VALID)
我的无线网卡:
*-network
description: Wireless interface
product: Wireless 3165
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 79
serial: 70:1c:e7:24:02:48
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.3.0-23-generic firmware=29.1654887522.0 ip=192.168.86.84 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:140 memory:df700000-df701fff