我的电脑里有一个 Realtek RTL8188CE 802.11b/g/n WiFi 适配器。今天我升级到了 13.10,但无法连接。升级之前,WiFi 工作正常。我可以看到 WiFi 网络,但尝试连接时只会显示“IP 配置不可用”的错误。其他设备工作正常。我尝试删除配置并多次重新进行配置,但都不起作用。
因此,查看系统日志,似乎 DHCP 请求超时了。如果我手动设置 IP 和其他设置,我可以连接到网络,但我还没有通过 Wifi 连接互联网 - 我认为我的手动配置还有点问题。
这是 lspci:
chrisn@Zircon:~$ lspci | grep WiFi
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
以及来自 lshw -C 网络的输出
*-network
description: Wireless interface
product: RTL8188CE 802.11b/g/n WiFi Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 01
serial: 54:04:a6:de:cb:ba
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8192ce driverversion=3.11.0-12-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:16 ioport:d000(size=256) memory:fe500000-fe503fff
这是从我单击“连接”按钮到它放弃时 /var/log/syslog 的状态。
chrisn@Zircon:~$ sudo tail -f -n0 /var/log/syslog
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) starting connection 'Diamond'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0/wireless): access point 'Diamond' has security, but secrets are required.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0/wireless): connection 'Diamond' has security, and secrets exist. No new secrets needed.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'ssid' value 'Diamond'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'scan_ssid' value '1'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'key_mgmt' value 'NONE'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'auth_alg' value 'OPEN'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'wep_key0' value '<omitted>'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: added 'wep_tx_keyidx' value '0'
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 19 14:03:05 Zircon NetworkManager[909]: <info> Config: set interface ap_scan to 1
Oct 19 14:03:06 Zircon NetworkManager[909]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Oct 19 14:03:07 Zircon wpa_supplicant[1415]: wlan0: SME: Trying to authenticate with 00:1f:33:e9:99:8a (SSID='Diamond' freq=2437 MHz)
Oct 19 14:03:07 Zircon kernel: [ 1911.641635] wlan0: authenticate with 00:1f:33:e9:99:8a
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Oct 19 14:03:07 Zircon kernel: [ 1911.651176] wlan0: send auth to 00:1f:33:e9:99:8a (try 1/3)
Oct 19 14:03:07 Zircon wpa_supplicant[1415]: wlan0: Trying to associate with 00:1f:33:e9:99:8a (SSID='Diamond' freq=2437 MHz)
Oct 19 14:03:07 Zircon kernel: [ 1911.654471] wlan0: authenticated
Oct 19 14:03:07 Zircon kernel: [ 1911.654701] rtl8192ce 0000:02:00.0 wlan0: disabling HT/VHT due to WEP/TKIP use
Oct 19 14:03:07 Zircon kernel: [ 1911.656855] wlan0: associate with 00:1f:33:e9:99:8a (try 1/3)
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> (wlan0): supplicant interface state: authenticating -> associating
Oct 19 14:03:07 Zircon wpa_supplicant[1415]: wlan0: Associated with 00:1f:33:e9:99:8a
Oct 19 14:03:07 Zircon wpa_supplicant[1415]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:1f:33:e9:99:8a completed (reauth) [id=0 id_str=]
Oct 19 14:03:07 Zircon kernel: [ 1911.660841] wlan0: RX AssocResp from 00:1f:33:e9:99:8a (capab=0x431 status=0 aid=4)
Oct 19 14:03:07 Zircon kernel: [ 1911.660951] wlan0: associated
Oct 19 14:03:07 Zircon kernel: [ 1911.661236] cfg80211: Calling CRDA for country: US
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> (wlan0): supplicant interface state: associating -> completed
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'Diamond'.
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct 19 14:03:07 Zircon kernel: [ 1911.667519] cfg80211: Regulatory domain changed to country: US
Oct 19 14:03:07 Zircon kernel: [ 1911.667525] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Oct 19 14:03:07 Zircon kernel: [ 1911.667530] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667534] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667538] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667541] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667545] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667548] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Oct 19 14:03:07 Zircon kernel: [ 1911.667551] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> dhclient started with pid 8714
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0) Beginning IP6 addrconf.
Oct 19 14:03:07 Zircon avahi-daemon[944]: Withdrawing address record for fe80::5604:a6ff:fede:cbba on wlan0.
Oct 19 14:03:07 Zircon avahi-daemon[944]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::5604:a6ff:fede:cbba.
Oct 19 14:03:07 Zircon avahi-daemon[944]: Interface wlan0.IPv6 no longer relevant for mDNS.
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Oct 19 14:03:07 Zircon dhclient: Internet Systems Consortium DHCP Client 4.2.4
Oct 19 14:03:07 Zircon dhclient: Copyright 2004-2012 Internet Systems Consortium.
Oct 19 14:03:07 Zircon dhclient: All rights reserved.
Oct 19 14:03:07 Zircon dhclient: For info, please visit https://www.isc.org/software/dhcp/
Oct 19 14:03:07 Zircon dhclient:
Oct 19 14:03:07 Zircon NetworkManager[909]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Oct 19 14:03:07 Zircon dhclient: Listening on LPF/wlan0/54:04:a6:de:cb:ba
Oct 19 14:03:07 Zircon dhclient: Sending on LPF/wlan0/54:04:a6:de:cb:ba
Oct 19 14:03:07 Zircon dhclient: Sending on Socket/fallback
Oct 19 14:03:07 Zircon dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0x6713caf2)
Oct 19 14:03:07 Zircon kernel: [ 1911.918587] wlan0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:1f:33:e9:99:8a
Oct 19 14:03:08 Zircon avahi-daemon[944]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::5604:a6ff:fede:cbba.
Oct 19 14:03:08 Zircon avahi-daemon[944]: New relevant interface wlan0.IPv6 for mDNS.
Oct 19 14:03:08 Zircon avahi-daemon[944]: Registering new address record for fe80::5604:a6ff:fede:cbba on wlan0.*.
Oct 19 14:03:10 Zircon dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=0x6713caf2)
Oct 19 14:03:17 Zircon dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15 (xid=0x6713caf2)
Oct 19 14:03:27 Zircon NetworkManager[909]: <info> (wlan0): IP6 addrconf timed out or failed.
Oct 19 14:03:27 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Oct 19 14:03:27 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Oct 19 14:03:27 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Oct 19 14:03:32 Zircon dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x6713caf2)
Oct 19 14:03:42 Zircon dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14 (xid=0x6713caf2)
Oct 19 14:03:52 Zircon NetworkManager[909]: <warn> (wlan0): DHCPv4 request timed out.
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 8714
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> (wlan0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> Marking connection 'Diamond' invalid.
Oct 19 14:03:52 Zircon NetworkManager[909]: <warn> Activation (wlan0) failed for connection 'Diamond'
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> (wlan0): deactivating device (reason 'none') [0]
Oct 19 14:03:52 Zircon kernel: [ 1957.444402] wlan0: deauthenticating from 00:1f:33:e9:99:8a by local choice (reason=3)
Oct 19 14:03:52 Zircon wpa_supplicant[1415]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Oct 19 14:03:52 Zircon NetworkManager[909]: <info> (wlan0): supplicant interface state: completed -> disconnected
Oct 19 14:03:52 Zircon kernel: [ 1957.468579] cfg80211: Calling CRDA to update world regulatory domain
Oct 19 14:03:52 Zircon kernel: [ 1957.475397] cfg80211: World regulatory domain updated:
Oct 19 14:03:52 Zircon kernel: [ 1957.475404] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Oct 19 14:03:52 Zircon kernel: [ 1957.475410] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:52 Zircon kernel: [ 1957.475414] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:52 Zircon kernel: [ 1957.475419] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:52 Zircon kernel: [ 1957.475423] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct 19 14:03:52 Zircon kernel: [ 1957.475427] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
有人有主意吗?
答案1
我遇到了完全相同的问题,我找到了一个相当巧妙的解决办法:重新制作 Live CD。在安装好的 Ubuntu 上,我安装了Ubuntu 定制套件我曾经使用 UCK 定制 Kubuntu 13.10 的原始 ISO。基本上,UCK 会在 ISO 中 chroot,并允许您对其进行定制。我启动了 UCK,并要求它允许我访问控制台,然后我修改了 /etc/apt/sources.list,并添加了以下行:
deb http://archive.ubuntu.com/ubuntu/ saucy-proposed main restricted universe multiverse
以启用最新(不稳定)软件包的下载。然后我运行apt-get update
和apt-get dist-upgrade
,安装了其他软件包plasma-nm
和其他与网络相关的软件包。然后我结束了 UCK 会话并构建了一个新的 ISO。如果我使用此自定义 ISO 启动系统,则 DHCP 不会超时,显然一切都正常。
如果有人感兴趣的话,我可以将我的 ISO 放在网上(只需发表评论,如果没有人使用,我不想上传 1GB),但是我建议您创建自己的 ISO,因为它很简单,你不必相信我并假设我没有篡改 ISO。
请注意,我只测试了实时系统,并没有运行完整安装。YMMV。
答案2
我在从每日构建 ISO 安装 13.10 时遇到了同样的问题。彻底升级系统解决了这个问题。
我遵循的步骤如下:
- 使用以太网连接(因为手动配置无线很麻烦)
- 运行
dhclient eth0
配置并确保接口已启动 - 做
apt-get update
/apt-get dist-upgrade
例行公事 - 删除所有以前存储的无线连接
- 重启
这为我解决了这个问题。但是,网络管理器时不时地会试图接管并取消配置连接,因此下载停止。我不得不取消下载,dhclient eth0
再次运行,然后恢复 dist-upgrade。
我希望这个对你有用!
答案3
13.10 附带的驱动程序存在一些问题。它似乎越来越糟糕了。
如果你喜欢冒险,我拿了驱动程序源代码并自己修复了它。我把它发布在 Github 上: https://github.com/FreedomBen/rtl8188ce-linux-driver
到目前为止,这是我所知道的唯一一个可以在 Ubuntu 13.10 上编译和运行的驱动程序版本(除了预打包的版本)。文件中有安装说明README.md
。
答案4
您可以尝试使用我制作的这个脚本将其放置在网络中:
斌/sh
.bin/sh nmcli nm sleep=false 'network' 中的案例 ![%] 结束案例
这样也许能很好地发挥作用。