这是 13.04 中的问题,是 wifi 的问题。Ubuntu 永远无法连接到网络。我的其他设备都运行正常。
计算机检测到网络并弹出 wifi 密码对话框。我输入正确的密码,单击“确定”,它会尝试连接几秒钟,然后再次要求输入密码。我正在使用新的 D-Link Wireless N 150 Pico USB 适配器,它在 Windows 下可以正常工作以连接到同一网络。
我在谷歌上搜索了几个小时并没有找到答案,也许有人可以帮忙?
syslog
包含:
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: get_secret_flags: assertion `is_secret_prop (setting, secret_name, error)' failed
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0/wireless): connection 'Wi-Fi connection 1' has security, and secrets exist. No new secrets needed.
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Config: added 'ssid' value 'kaylag2'
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Config: added 'scan_ssid' value '1'
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Config: added 'psk' value '<omitted>'
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> Config: set interface ap_scan to 1
Sep 7 09:25:40 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: inactive -> scanning
Sep 7 09:25:41 mike-ubuntu wpa_supplicant[1017]: wlan0: SME: Trying to authenticate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.665268] wlan0: authenticate with 00:13:10:e1:f9:a2
Sep 7 09:25:41 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.681287] wlan0: send auth to 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 09:25:41 mike-ubuntu wpa_supplicant[1017]: wlan0: Trying to associate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.686768] wlan0: authenticated
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.687005] rtl8192cu 1-1:1.0 wlan0: disabling HT/VHT due to WEP/TKIP use
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.687010] rtl8192cu 1-1:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.687014] rtl8192cu 1-1:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.688037] wlan0: associate with 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 09:25:41 mike-ubuntu wpa_supplicant[1017]: wlan0: Associated with 00:13:10:e1:f9:a2
Sep 7 09:25:41 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: authenticating -> associated
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.691496] wlan0: RX AssocResp from 00:13:10:e1:f9:a2 (capab=0x431 status=0 aid=12)
Sep 7 09:25:41 mike-ubuntu kernel: [ 1277.691541] wlan0: associated
Sep 7 09:25:41 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Sep 7 09:25:51 mike-ubuntu wpa_supplicant[1017]: wlan0: Authentication with 00:13:10:e1:f9:a2 timed out.
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.695734] wlan0: disassociating from 00:13:10:e1:f9:a2 by local choice (reason=3)
Sep 7 09:25:51 mike-ubuntu wpa_supplicant[1017]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Sep 7 09:25:51 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: 4-way handshake -> disconnected
Sep 7 09:25:51 mike-ubuntu NetworkManager[986]: <info> Activation (wlan0/wireless): disconnected during association, asking for new key.
Sep 7 09:25:51 mike-ubuntu NetworkManager[986]: <info> (wlan0): device state change: config -> need-auth (reason 'supplicant-disconnect') [50 60 8]
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.711433] wlan0: deauthenticating from 00:13:10:e1:f9:a2 by local choice (reason=3)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.712868] cfg80211: Calling CRDA to update world regulatory domain
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783416] cfg80211: World regulatory domain updated:
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783432] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783439] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783445] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783450] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783456] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 09:25:51 mike-ubuntu kernel: [ 1287.783461] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 09:25:52 mike-ubuntu NetworkManager[986]: <info> (wlan0): supplicant interface state: disconnected -> inactive
Sep 7 09:26:12 mike-ubuntu kernel: [ 1308.420423] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
Sep 7 09:26:12 mike-ubuntu kernel: [ 1308.422269] sd 6:0:0:0: [sdb] Asking for cache data failed
Sep 7 09:26:12 mike-ubuntu kernel: [ 1308.422282] sd 6:0:0:0: [sdb] Assuming drive cache: write through
我尝试禁用路由器上的 WPA,但仍然无法连接,我只是想缩小问题范围。
sudo lshw -C 网络
*-网络
描述:无线接口物理 ID:1 总线信息:usb@1:1 逻辑名称:wlan0 序列号:14:d6:4d:a7:0d:2e 功能:以太网 物理无线配置:广播=是 驱动程序=rtl8192cu 驱动程序版本=3.8.0-19-通用 固件=N/A 链接=否 多播=是 无线=IEEE 802.11bgn
此后的系统日志:sudo iw wlan0 set power_save off
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) starting connection 'Wi-Fi connection 1'
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0/wireless): access point 'Wi-Fi connection 1' has security, but secrets are required.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0/wireless): connection 'Wi-Fi connection 1' has security, and secrets exist. No new secrets needed.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Config: added 'ssid' value 'kaylag2'
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Config: added 'scan_ssid' value '1'
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Config: added 'psk' value '<omitted>'
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> Config: set interface ap_scan to 1
Sep 7 11:59:52 mike-ubuntu NetworkManager[969]: <info> (wlan0): supplicant interface state: inactive -> scanning
Sep 7 11:59:53 mike-ubuntu wpa_supplicant[1193]: wlan0: SME: Trying to authenticate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 11:59:53 mike-ubuntu kernel: [ 1331.829097] wlan0: authenticate with 00:13:10:e1:f9:a2
Sep 7 11:59:53 mike-ubuntu NetworkManager[969]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Sep 7 11:59:53 mike-ubuntu kernel: [ 1331.844435] wlan0: send auth to 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.048053] wlan0: send auth to 00:13:10:e1:f9:a2 (try 2/3)
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.051835] wlan0: authenticated
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.052717] rtl8192cu 1-1:1.0 wlan0: disabling HT/VHT due to WEP/TKIP use
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.052779] rtl8192cu 1-1:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.052786] rtl8192cu 1-1:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Sep 7 11:59:53 mike-ubuntu wpa_supplicant[1193]: wlan0: Trying to associate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.056098] wlan0: associate with 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 11:59:53 mike-ubuntu NetworkManager[969]: <info> (wlan0): supplicant interface state: authenticating -> associating
Sep 7 11:59:53 mike-ubuntu wpa_supplicant[1193]: wlan0: Associated with 00:13:10:e1:f9:a2
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.089970] wlan0: RX AssocResp from 00:13:10:e1:f9:a2 (capab=0x431 status=0 aid=12)
Sep 7 11:59:53 mike-ubuntu kernel: [ 1332.090161] wlan0: associated
Sep 7 11:59:53 mike-ubuntu NetworkManager[969]: <info> (wlan0): supplicant interface state: associating -> 4-way handshake
Sep 7 12:00:03 mike-ubuntu wpa_supplicant[1193]: wlan0: Authentication with 00:13:10:e1:f9:a2 timed out.
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.094561] wlan0: disassociating from 00:13:10:e1:f9:a2 by local choice (reason=3)
Sep 7 12:00:03 mike-ubuntu wpa_supplicant[1193]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Sep 7 12:00:03 mike-ubuntu NetworkManager[969]: <info> (wlan0): supplicant interface state: 4-way handshake -> disconnected
Sep 7 12:00:03 mike-ubuntu NetworkManager[969]: <info> Activation (wlan0/wireless): disconnected during association, asking for new key.
Sep 7 12:00:03 mike-ubuntu NetworkManager[969]: <info> (wlan0): device state change: config -> need-auth (reason 'supplicant-disconnect') [50 60 8]
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.106375] wlan0: deauthenticating from 00:13:10:e1:f9:a2 by local choice (reason=3)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.112407] cfg80211: Calling CRDA to update world regulatory domain
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164006] cfg80211: World regulatory domain updated:
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164102] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164109] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164116] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164121] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164127] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:00:03 mike-ubuntu kernel: [ 1342.164132] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
好的,为了缩小问题范围,我认为可能是信号太弱,所以我将接入点移近了,我还禁用了安全性并尝试再次连接,但仍然没有成功。我不确定这里是否有任何突出的地方:
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) starting connection 'kaylag2'
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0/wireless): connection 'kaylag2' requires no security. No secrets needed.
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Config: added 'ssid' value 'kaylag2'
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Config: added 'scan_ssid' value '1'
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Config: added 'key_mgmt' value 'NONE'
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> Config: set interface ap_scan to 1
Sep 7 12:27:36 mike-ubuntu NetworkManager[868]: <info> (wlan0): supplicant interface state: inactive -> scanning
Sep 7 12:27:37 mike-ubuntu wpa_supplicant[906]: wlan0: SME: Trying to authenticate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.581772] wlan0: authenticate with 00:13:10:e1:f9:a2
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.620391] wlan0: send auth to 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 12:27:37 mike-ubuntu wpa_supplicant[906]: wlan0: Trying to associate with 00:13:10:e1:f9:a2 (SSID='kaylag2' freq=2437 MHz)
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.630642] wlan0: authenticated
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.631154] rtl8192cu 1-1:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.631164] rtl8192cu 1-1:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.632450] wlan0: associate with 00:13:10:e1:f9:a2 (try 1/3)
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> (wlan0): supplicant interface state: authenticating -> associating
Sep 7 12:27:37 mike-ubuntu wpa_supplicant[906]: wlan0: Associated with 00:13:10:e1:f9:a2
Sep 7 12:27:37 mike-ubuntu wpa_supplicant[906]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:13:10:e1:f9:a2 completed (auth) [id=0 id_str=]
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.642953] wlan0: RX AssocResp from 00:13:10:e1:f9:a2 (capab=0x421 status=0 aid=4)
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.643075] wlan0: associated
Sep 7 12:27:37 mike-ubuntu kernel: [ 115.643160] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> (wlan0): supplicant interface state: associating -> completed
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'kaylag2'.
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> dhclient started with pid 2201
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Beginning IP6 addrconf.
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Sep 7 12:27:37 mike-ubuntu dhclient: Internet Systems Consortium DHCP Client 4.2.4
Sep 7 12:27:37 mike-ubuntu dhclient: Copyright 2004-2012 Internet Systems Consortium.
Sep 7 12:27:37 mike-ubuntu dhclient: All rights reserved.
Sep 7 12:27:37 mike-ubuntu dhclient: For info, please visit https://www.isc.org/software/dhcp/
Sep 7 12:27:37 mike-ubuntu dhclient:
Sep 7 12:27:37 mike-ubuntu dhclient: Listening on LPF/wlan0/14:d6:4d:a7:0d:2e
Sep 7 12:27:37 mike-ubuntu NetworkManager[868]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Sep 7 12:27:37 mike-ubuntu dhclient: Sending on LPF/wlan0/14:d6:4d:a7:0d:2e
Sep 7 12:27:37 mike-ubuntu dhclient: Sending on Socket/fallback
Sep 7 12:27:37 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0x2a921615)
Sep 7 12:27:39 mike-ubuntu avahi-daemon[864]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::16d6:4dff:fea7:d2e.
Sep 7 12:27:39 mike-ubuntu avahi-daemon[864]: New relevant interface wlan0.IPv6 for mDNS.
Sep 7 12:27:39 mike-ubuntu avahi-daemon[864]: Registering new address record for fe80::16d6:4dff:fea7:d2e on wlan0.*.
Sep 7 12:27:40 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4 (xid=0x2a921615)
Sep 7 12:27:44 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a921615)
Sep 7 12:27:54 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a921615)
Sep 7 12:27:57 mike-ubuntu NetworkManager[868]: <info> (wlan0): IP6 addrconf timed out or failed.
Sep 7 12:27:57 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Sep 7 12:27:57 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Sep 7 12:27:57 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Sep 7 12:28:04 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a921615)
Sep 7 12:28:14 mike-ubuntu dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15 (xid=0x2a921615)
Sep 7 12:28:20 mike-ubuntu kernel: [ 158.449728] sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
Sep 7 12:28:20 mike-ubuntu kernel: [ 158.451338] sd 6:0:0:0: [sdb] Asking for cache data failed
Sep 7 12:28:20 mike-ubuntu kernel: [ 158.451348] sd 6:0:0:0: [sdb] Assuming drive cache: write through
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <warn> (wlan0): DHCPv4 request timed out.
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 2201
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> (wlan0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <warn> Activation (wlan0) failed for connection 'kaylag2'
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> (wlan0): deactivating device (reason 'none') [0]
Sep 7 12:28:22 mike-ubuntu avahi-daemon[864]: Withdrawing address record for fe80::16d6:4dff:fea7:d2e on wlan0.
Sep 7 12:28:22 mike-ubuntu avahi-daemon[864]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::16d6:4dff:fea7:d2e.
Sep 7 12:28:22 mike-ubuntu avahi-daemon[864]: Interface wlan0.IPv6 no longer relevant for mDNS.
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.024993] wlan0: deauthenticating from 00:13:10:e1:f9:a2 by local choice (reason=3)
Sep 7 12:28:22 mike-ubuntu wpa_supplicant[906]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.040777] cfg80211: Calling CRDA to update world regulatory domain
Sep 7 12:28:22 mike-ubuntu NetworkManager[868]: <info> (wlan0): supplicant interface state: completed -> disconnected
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132211] cfg80211: World regulatory domain updated:
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132227] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132231] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132234] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132237] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132239] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:28:22 mike-ubuntu kernel: [ 161.132242] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Sep 7 12:28:23 mike-ubuntu avahi-daemon[864]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::16d6:4dff:fea7:d2e.
Sep 7 12:28:23 mike-ubuntu avahi-daemon[864]: New relevant interface wlan0.IPv6 for mDNS.
Sep 7 12:28:23 mike-ubuntu avahi-daemon[864]: Registering new address record for fe80::16d6:4dff:fea7:d2e on wlan0.*.
答案1
您可以尝试关闭可能导致过早断开卡连接的无线省电功能:
sudo iw wlan0 set power_save off
编辑:还有一些建议...
从你发送的输出来看,可能是 ipv6 连接失败
编辑连接>选择您的网络然后单击编辑> IPV6 选项卡>将方法设置为“忽略”
我还看到过其他人在讨论证书问题: 无线网络中的身份验证
sudo nano /etc/NetworkManager/system-connections/YOUR-NETWORK-NAME
并注释掉该行(在前面加上#)system-ca-cert=true
可能是你的 USB 适配器固件有问题?你可以尝试通过以太网电缆连接,然后通过软件更新程序进行更新。
最后想到的办法就是删除当前连接并重新开始......
让我们知道进展如何
答案2
如我所见,dhclient 无法从路由器检索 IP。至少是 IPv6。因此,请尝试将 IPv6 设置为“忽略”和/或启用/禁用 IPv6/IPv4。所有这些都对我没有帮助(我有相同的日志)。我手动设置了 IPv4。首先,我设置了随机 IP 并直接连接到路由器。这里我没有互联网,但我连接到了路由器。然后我 nmap 网络以查找路由器 IP:nmap 192.168.0.0/23 然后将路由器 IP 设置为网关。
这不是适用于所有情况的解决方案,但它今晚帮助我连接到了酒店的免费 Wi-Fi。我还必须设置 DNS。我使用了谷歌公共 DNS,但你可以设置任何其他 DNS。