linux部分wifi,ubuntu能搜索wifi,却不能连接部分wifi的解决办法

这篇博客记录了Linux系统中通过less命令查看/var/log/syslog日志的过程,内容涉及网络连接尝试和失败的情况。日志显示在尝试连接到名为'English'的无线网络时遇到问题,需要认证但无法提供必要的安全秘密。最终,由于连接超时导致激活失败,且找不到指定的SSID。解决方案是编辑iwlwifi.conf文件,禁用11n功能。
摘要由CSDN通过智能技术生成

使用命令查看系统日志:less /var/log/syslog

May 22 16:20:04 lan-PC console-kit-daemon[7092]: console-kit-daemon[7092]: GLib-CRITICAL: Source ID 16 was not found when attempting to remove it

May 22 16:20:04 lan-PC console-kit-daemon[7092]: GLib-CRITICAL: Source ID 16 was not found when attempting to remove it

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) starting connection 'English'

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) started...

May 22 16:20:08 lan-PC NetworkManager[813]: (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) starting...

May 22 16:20:08 lan-PC NetworkManager[813]: (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0/wireless): access point 'English' has security, but secrets are required.

May 22 16:20:08 lan-PC NetworkManager[813]: (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) complete.

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) started...

May 22 16:20:08 lan-PC NetworkManager[813]: (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) starting...

May 22 16:20:08 lan-PC NetworkManager[813]: (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0/wireless): connection 'English' has security, and secrets exist.  No new secrets needed.

May 22 16:20:08 lan-PC NetworkManager[813]: Config: added 'ssid' value 'English'

May 22 16:20:08 lan-PC NetworkManager[813]: Config: added 'scan_ssid' value '1'

May 22 16:20:08 lan-PC NetworkManager[813]: Config: added 'key_mgmt' value 'WPA-PSK'

May 22 16:20:08 lan-PC NetworkManager[813]: Config: added 'auth_alg' value 'OPEN'

May 22 16:20:08 lan-PC NetworkManager[813]: Config: added 'psk' value ''

May 22 16:20:08 lan-PC NetworkManager[813]: Activation (wlan0) Stage 2 of 5 (Device Configure) complete.

May 22 16:20:08 lan-PC NetworkManager[813]: Couldn't disconnect supplicant interface: This interface is not connected.

May 22 16:20:08 lan-PC NetworkManager[813]: Couldn't disconnect supplicant interface: This interface is not connected.

May 22 16:20:08 lan-PC NetworkManager[813]: Config: set interface ap_scan to 1

May 22 16:20:34 lan-PC NetworkManager[813]: Activation (wlan0/wireless): association took too long, failing activation.

May 22 16:20:34 lan-PC NetworkManager[813]: (wlan0): device state change: config -> failed (reason 'ssid-not-found') [50 120 53]

May 22 16:20:34 lan-PC NetworkManager[813]: Activation (wlan0) failed for connection 'English'

May 22 16:20:34 lan-PC NetworkManager[813]: (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]

May 22 16:20:34 lan-PC NetworkManager[813]: (wlan0): deactivating device (reason 'none') [0]

May 22 16:20:34 lan-PC NetworkManager[813]: (wlan0): supplicant interface state: scanning -> disconnected

May 22 16:20:34 lan-PC NetworkManager[813]: Couldn't disconnect supplicant interface: This interface is not connected.

解决办法:sudo gedit /etc/modprobe.d/iwlwifi.conf

在文件末尾加入:options iwlwifi 11n_disable=1即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值