经过几个小时的反复试验,我想我需要一些帮助......
问题如下:我正在尝试连接 WIFI 网络,在过去三个月里它一直正常工作,但三天前开始出现问题。我尝试连接 20 次,其中 19 次出现“网络连接激活失败”,20 次中有 1 次不知为何能正常工作。此问题仅出现在我的 Ubuntu 20.04.3 LTS 上,在我的手机以及其他人的设备上都可以正常工作。
根据输出,sudo tail -f /var/log/syslog
我假设 DHCP 失败:
在 20 种连接失败情况下,输出 19:
Dec 20 11:22:35 gubblgubbl NetworkManager[822]: <info> [1639995755.0003] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Dec 20 11:22:35 gubblgubbl avahi-daemon[813]: Joining mDNS multicast group on interface wlp2s0.IPv6 with address fe80::e7c1:a84a:b0ce:e25b.
Dec 20 11:22:35 gubblgubbl avahi-daemon[813]: New relevant interface wlp2s0.IPv6 for mDNS.
Dec 20 11:22:35 gubblgubbl avahi-daemon[813]: Registering new address record for fe80::e7c1:a84a:b0ce:e25b on wlp2s0.*.
Dec 20 11:22:35 gubblgubbl wpa_supplicant[858]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-68 noise=-114 txrate=1000
Dec 20 11:22:35 gubblgubbl systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 20 11:22:37 gubblgubbl dbus-daemon[820]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.12' (uid=0 pid=822 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Dec 20 11:22:37 gubblgubbl systemd[1]: Starting Network Manager Script Dispatcher Service...
Dec 20 11:22:37 gubblgubbl dbus-daemon[820]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Dec 20 11:22:37 gubblgubbl systemd[1]: Started Network Manager Script Dispatcher Service.
Dec 20 11:22:47 gubblgubbl systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 20 11:23:18 gubblgubbl wpa_supplicant[858]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-62 noise=-114 txrate=1000
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <warn> [1639995800.6093] dhcp4 (wlp2s0): request timed out
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <info> [1639995800.6094] dhcp4 (wlp2s0): state changed unknown -> timeout
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <info> [1639995800.6094] device (wlp2s0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <info> [1639995800.6100] manager: NetworkManager state is now DISCONNECTED
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <warn> [1639995800.6117] device (wlp2s0): Activation: failed for connection 'Ulveskogen'
Dec 20 11:23:20 gubblgubbl NetworkManager[822]: <info> [1639995800.6123] device (wlp2s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
对于 20 次连接中有 1 次成功的情况,输出结果如下:
Dec 20 11:08:44 gubblgubbl NetworkManager[822]: <info> [1639994924.4631] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Dec 20 11:08:44 gubblgubbl avahi-daemon[813]: Joining mDNS multicast group on interface wlp2s0.IPv6 with address fe80::e7c1:a84a:b0ce:e25b.
Dec 20 11:08:44 gubblgubbl avahi-daemon[813]: New relevant interface wlp2s0.IPv6 for mDNS.
Dec 20 11:08:44 gubblgubbl avahi-daemon[813]: Registering new address record for fe80::e7c1:a84a:b0ce:e25b on wlp2s0.*.
Dec 20 11:08:44 gubblgubbl wpa_supplicant[858]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-66 noise=-115 txrate=1000
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option dhcp_lease_time => '86400'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option domain_name_servers => '192.168.1.1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option expiry => '1640081327'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option host_name => 'gubblgubbl'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option ip_address => '192.168.1.57'
Dec 20 11:08:47 gubblgubbl avahi-daemon[813]: Joining mDNS multicast group on interface wlp2s0.IPv4 with address 192.168.1.57.
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3827] dhcp4 (wlp2s0): option next_server => '192.168.1.1'
Dec 20 11:08:47 gubblgubbl avahi-daemon[813]: New relevant interface wlp2s0.IPv4 for mDNS.
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_broadcast_address => '1'
Dec 20 11:08:47 gubblgubbl avahi-daemon[813]: Registering new address record for 192.168.1.57 on wlp2s0.IPv4.
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_domain_name => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_domain_name_servers => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_domain_search => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_host_name => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_interface_mtu => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_ms_classless_static_routes => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3828] dhcp4 (wlp2s0): option requested_nis_domain => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_nis_servers => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_ntp_servers => '1'
Dec 20 11:08:47 gubblgubbl whoopsie[11938]: [11:08:47] Cannot reach: https://daisy.ubuntu.com
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_rfc3442_classless_static_routes => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_root_path => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_routers => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_static_routes => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_subnet_mask => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3829] dhcp4 (wlp2s0): option requested_time_offset => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3830] dhcp4 (wlp2s0): option requested_wpad => '1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3830] dhcp4 (wlp2s0): option routers => '192.168.1.1'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3830] dhcp4 (wlp2s0): option subnet_mask => '255.255.255.0'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3830] dhcp4 (wlp2s0): option wpad => '#012'
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3830] dhcp4 (wlp2s0): state changed unknown -> bound
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3848] device (wlp2s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3903] device (wlp2s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3909] device (wlp2s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3918] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3935] manager: NetworkManager state is now CONNECTED_SITE
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3936] policy: set 'Ulveskogen' (wlp2s0) as default for IPv4 routing and DNS
Dec 20 11:08:47 gubblgubbl NetworkManager[822]: <info> [1639994927.3943] device (wlp2s0): Activation: successful, device activated.
Dec 20 11:08:50 gubblgubbl NetworkManager[822]: <info> [1639994930.8331] manager: NetworkManager state is now CONNECTED_GLOBAL
Dec 20 11:08:50 gubblgubbl whoopsie[11938]: [11:08:50] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/38
Dec 20 11:08:50 gubblgubbl whoopsie[11938]: [11:08:50] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/38
Dec 20 11:08:50 gubblgubbl whoopsie[11938]: [11:08:50] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/38
Dec 20 11:08:51 gubblgubbl whoopsie[11938]: [11:08:51] online
这些是我认为相关的部分,如果需要更多信息,请告诉我。
最让我困惑的是,它实际上时不时地会起作用。但不幸的是,我无法确定它何时起作用。此外,我知道我的笔记本电脑可以完美地与其他 WIFI 配合使用,而且我再次无法确定任何可以暗示解决我的问题的东西。这就是为什么我没有尝试 SE 上其他“激活网络连接失败”问题中的众多建议的原因,因为我的情况似乎与这些不同。(我不想冒险将我的笔记本电脑与互联网完全切断(我没有可用的 LAN),这会使提出这个问题变得相当困难)
任何帮助都将不胜感激!