所以我的问题是,我最近将 Ubuntu 12.10 作为双启动安装在我的台式电脑上。经过几个小时的谷歌搜索,我终于能够让我的 D-Link DWA-142 “工作”。但是,它只能看到网络,但无法连接。它确实连接过一次网络,但几分钟后就断线了。我已经这样做了apt-get 升级 && 更新。我目前通过 Galaxy S2 进行网络共享。如果我通过智能手机打开热点,它会连接,但不会连接互联网。提前致谢。
iwconfig
给出:
wlan0 IEEE 802.11g ESSID:off/any
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:144.5 Mb/s Sensitivity=-200 dBm
RTS thr=2346 B Fragment thr=2346 B
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
nm-tool 给出:
NetworkManager Tool
State: connected (global)
- Device: wlan0 ----------------------------------------------------------------
Type: 802.11 WiFi
Driver: ndiswrapper
State: unavailable
Default: no
HW Address: 00:19:5B:55:17:53
Capabilities:
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points
尝试连接时
`sudo tail -f /var/log/syslog`
给我:
Dec 31 18:28:19 ToterLaptop NetworkManager[731]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Dec 31 18:28:21 ToterLaptop NetworkManager[731]: <warn> Activation (wlan0/wireless): association took too long.
Dec 31 18:28:21 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Dec 31 18:28:21 ToterLaptop NetworkManager[731]: <warn> Activation (wlan0/wireless): asking for new secrets
Dec 31 18:28:21 ToterLaptop NetworkManager[731]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 31 18:28:21 ToterLaptop NetworkManager[731]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: get_secret_flags: assertion `is_secret_prop (setting, secret_name, error)' failed
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0/wireless): connection 'Wireless connection 1' has security, and secrets exist. No new secrets needed.
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Config: added 'ssid' value 'MG'
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Config: added 'scan_ssid' value '1'
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Config: added 'psk' value '<omitted>'
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 31 18:28:24 ToterLaptop NetworkManager[731]: <info> Config: set interface ap_scan to 1
Dec 31 18:28:29 ToterLaptop kernel: [ 621.828627] end_request: I/O error, dev fd0, sector 0
Dec 31 18:28:29 ToterLaptop kernel: [ 621.828634] Buffer I/O error on device fd0, logical block 0
Dec 31 18:28:34 ToterLaptop wpa_supplicant[2258]: wlan0: Trying to associate with 00:1f:3f:d5:1f:32 (SSID='MG' freq=2412 MHz)
Dec 31 18:28:37 ToterLaptop NetworkManager[731]: <info> (wlan0): supplicant interface state: scanning -> associating
Dec 31 18:28:42 ToterLaptop kernel: [ 634.000763] end_request: I/O error, dev fd0, sector 0
Dec 31 18:28:42 ToterLaptop kernel: [ 634.000771] Buffer I/O error on device fd0, logical block 0
Dec 31 18:28:47 ToterLaptop wpa_supplicant[2258]: wlan0: Authentication with 00:1f:3f:d5:1f:32 timed out.
Dec 31 18:28:47 ToterLaptop NetworkManager[731]: <info> (wlan0): supplicant interface state: associating -> disconnected
Dec 31 18:28:48 ToterLaptop NetworkManager[731]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Dec 31 18:28:50 ToterLaptop NetworkManager[731]: <warn> Activation (wlan0/wireless): association took too long.
Dec 31 18:28:50 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Dec 31 18:28:50 ToterLaptop NetworkManager[731]: <warn> Activation (wlan0/wireless): asking for new secrets
Dec 31 18:28:50 ToterLaptop NetworkManager[731]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 31 18:28:50 ToterLaptop NetworkManager[731]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 31 18:28:54 ToterLaptop kernel: [ 646.165373] end_request: I/O error, dev fd0, sector 0
Dec 31 18:28:54 ToterLaptop kernel: [ 646.165380] Buffer I/O error on device fd0, logical block 0
Dec 31 18:28:58 ToterLaptop NetworkManager[731]: <info> (wlan0): supplicant interface state: scanning -> inactive
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <warn> No agents were available for this request.
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <info> Marking connection 'Wireless connection 1' invalid.
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <warn> Activation (wlan0) failed for connection 'Wireless connection 1'
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: failed -> disconnected (reason 'node') [120 30 0]
Dec 31 18:29:00 ToterLaptop NetworkManager[731]: <info> (wlan0): deactivating device (reason 'none') [0]
Dec 31 18:29:03 ToterLaptop NetworkManager[731]: <info> (wlan0): device state change: disconnected -> unavailable (reason 'none') [30 20 0]
Dec 31 18:29:03 ToterLaptop NetworkManager[731]: <info> (wlan0): deactivating device (reason 'none') [0]
Dec 31 18:29:03 ToterLaptop NetworkManager[731]: <info> (wlan0): taking down device.
Dec 31 18:29:03 ToterLaptop NetworkManager[731]: <info> WiFi hardware radio set disabled
Dec 31 18:29:06 ToterLaptop kernel: [ 658.337199] end_request: I/O error, dev fd0, sector 0
Dec 31 18:29:06 ToterLaptop kernel: [ 658.337206] Buffer I/O error on device fd0, logical block 0
Dec 31 18:29:18 ToterLaptop kernel: [ 670.508660] end_request: I/O error, dev fd0, sector 0
Dec 31 18:29:18 ToterLaptop kernel: [ 670.508667] Buffer I/O error on device fd0, logical block 0
Dec 31 18:29:30 ToterLaptop kernel: [ 682.677361] end_request: I/O error, dev fd0, sector 0
Dec 31 18:29:30 ToterLaptop kernel: [ 682.677368] Buffer I/O error on device fd0, logical block 0
Dec 31 18:29:42 ToterLaptop kernel: [ 694.845447] end_request: I/O error, dev fd0, sector 0
Dec 31 18:29:42 ToterLaptop kernel: [ 694.845453] Buffer I/O error on device fd0, logical block 0
Dec 31 18:29:55 ToterLaptop kernel: [ 707.021368] end_request: I/O error, dev fd0, sector 0
答案1
在你的终端上尝试一下。
1.sudo rfkill 列表
这将显示您的系统上的服务。
2.sudo rfkill 解除所有阻止
如果有人被阻止,这将解除所有服务的阻止。
答案2
我也注意到了这个问题,但仅限于一旅行时无法使用 wifi 网络。这不完全是 Ubuntu/Linux 的问题,因为重新启动 Windows 也出现了几乎完全相同的情况。
我可以在 Android 上获得更好的连接,至少它可以可靠地连接,并且 Wifi 可能会在几分钟后切断,而不是几秒钟,就像 Killer 无线网卡通常那样。
我最好的猜测是以下两件事之一 - 无线驱动程序没有正确设置其超时(不确定除了升级到修复该问题的驱动程序/内核之外如何更改它),或者存在某种类型的干扰对你的无线网卡的影响比其他的更大?