Ubuntu 12.04 已连接 Wi-Fi,但无互联网

Ubuntu 12.04 已连接 Wi-Fi,但无互联网

我的新戴尔 xps 13 haswell 开发者版(带有 ubuntu 12.04)开始出现 wifi 问题。

一切都运行正常,直到昨天我将电脑连接到工作场所的 wifi(它运行正常)并回到家并连接到常用的 wifi。

看起来好像连接上了,但是互联网却无法使用。我尝试了此站点上提出的许多解决方案,例如通过添加以下命令来修改 ilwifi.conf 文件:options iwlwifi 11n_disable=1

使用有线连接时,它工作正常,使用 wifi 时则完全不行。我安装了 wicd,界面告诉我没有找到无线网络。

我还停用了 Mozilla 中的代理,但仍然没有成功。我还重新安装了 wifi 卡的驱动程序,但仍然没有成功。

以下是电缆未连接时的一些命令的结果,可能会有所帮助:

cris@christi:~$ iwconfig
lo        no wireless extensions.

wlan0     no wireless extensions.

cris@christi:~$ ifconfig

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1344 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1344 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:129867 (129.8 KB)  TX bytes:129867 (129.8 KB)


wlan0     Link encap:Ethernet  HWaddr 5c:51:4f:ed:4e:73 
          inet addr:192.168.1.52  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::5e51:4fff:feed:4e73/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:549 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:135170 (135.1 KB)  TX bytes:97869 (97.8 KB)

cris@christi:~$ nm-tool

NetworkManager Tool

State: connected (global)

- Device: wlan0  [SFR_80F0] ----------------------------------------------------
  Type:              802.11 WiFi
  Driver:            iwlwifi
  State:             connected
  Default:           no
  HW Address:        5C:51:4F:ED:4E:73

  Capabilities:
    Speed:           1 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
......
  IPv4 Settings:
    Address:         192.168.1.52
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1

cris@christi:~$ sudo lshw -C network
[sudo] password for cris:
PCI (sysfs) 
  *-network              
       description: Ethernet interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 6b
       serial: 5c:51:4f:ed:4e:73
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical
       configuration: broadcast=yes driver=iwlwifi driverversion=3.5.0-45-generic firmware=22.0.6.0 ip=192.168.1.52 latency=0 link=yes multicast=yes
       resources: irq:60 memory:f0400000-f0401fff


Jan 23 10:04:12 christi NetworkManager[1074]: <info>   address 192.168.1.52
Jan 23 10:04:12 christi NetworkManager[1074]: <info>   prefix 24 (255.255.255.0)
Jan 23 10:04:12 christi NetworkManager[1074]: <info>   gateway 192.168.1.1
Jan 23 10:04:12 christi NetworkManager[1074]: <info>   hostname 'christi'
Jan 23 10:04:12 christi NetworkManager[1074]: <info>   nameserver '192.168.1.1'
Jan 23 10:04:12 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Jan 23 10:04:12 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) started...
Jan 23 10:04:13 christi NetworkManager[1074]: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
Jan 23 10:04:13 christi NetworkManager[1074]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Jan 23 10:04:13 christi NetworkManager[1074]: <info> Activation (wlan0) successful, device activated.
Jan 23 10:04:13 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Jan 23 10:04:13 christi NetworkManager[1074]: <info> wpa_supplicant die count reset
Jan 23 10:04:32 christi NetworkManager[1074]: <info> (wlan0): IP6 addrconf timed out or failed.
Jan 23 10:04:32 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jan 23 10:04:32 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jan 23 10:04:32 christi NetworkManager[1074]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.


cris@christi:~$ dmesg | grep wlan | tail -n20 
[  921.672554] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  921.724628] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  930.114041] wlan0: authenticate with 30:7e:cb:a1:80:f4
[  930.114910] wlan0: send auth to 30:7e:cb:a1:80:f4 (try 1/3)
[  930.118894] wlan0: authenticated
[  930.119243] wlan0: associate with 30:7e:cb:a1:80:f4 (try 1/3)
[  930.123517] wlan0: RX AssocResp from 30:7e:cb:a1:80:f4 (capab=0x411 status=0 aid=2)
[  930.124285] wlan0: associated
[  930.124801] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1101.164462] wlan0: deauthenticating from 30:7e:cb:a1:80:f4 by local choice (reason=3)
[ 1101.196490] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1101.488712] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1101.548956] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1109.942962] wlan0: authenticate with 30:7e:cb:a1:80:f4
[ 1109.943982] wlan0: send auth to 30:7e:cb:a1:80:f4 (try 1/3)
[ 1109.945787] wlan0: authenticated
[ 1109.949796] wlan0: associate with 30:7e:cb:a1:80:f4 (try 1/3)
[ 1109.952544] wlan0: RX AssocResp from 30:7e:cb:a1:80:f4 (capab=0x411 status=0 aid=2)
[ 1109.953463] wlan0: associated
[ 1109.955262] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

有人能帮我吗?谢谢


dmesg | grep firmware 的结果为:

[    2.950585] iwlwifi 0000:02:00.0: loaded firmware version 22.0.6.0 op_mode iwlmvm
[    3.002968] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[    3.119174] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[ 3863.176879] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[ 3863.312469] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[16997.271422] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[16997.271471]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[16997.271515] bluetooth hci0: firmware: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq will not be loaded
[16997.271517] Bluetooth: hci0 failed to open Intel firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq(-11)
[16997.271522] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[16997.271564]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[16997.271600] bluetooth hci0: firmware: intel/ibt-hw-37.7.bseq will not be loaded
[35380.715329] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[35380.849609] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[59731.794863] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[59731.794914]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[59731.794961] bluetooth hci0: firmware: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq will not be loaded
[59731.794962] Bluetooth: hci0 failed to open Intel firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq(-11)
[59731.794967] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[59731.795011]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[59731.795047] bluetooth hci0: firmware: intel/ibt-hw-37.7.bseq will not be loaded
[59742.687217] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[59742.687278]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[59742.687324] bluetooth hci0: firmware: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq will not be loaded
[59742.687326] Bluetooth: hci0 failed to open Intel firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq(-11)
[59742.687331] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/drivers/base/firmware_class.c:597 request_firmware+0xb5/0xf0()
[59742.687374]  [<ffffffff81439f95>] request_firmware+0xb5/0xf0
[59742.687410] bluetooth hci0: firmware: intel/ibt-hw-37.7.bseq will not be loaded

我还致电戴尔支持部门以获取更多信息,他们让我将 wifi 接入点的频道从自动更改为 11,因为他们说这样与他们的 wifi 卡更兼容。现在它可以正常工作了。但有时它会变得非常慢。另一方面,当我将它连接到工作中的 wifi 时,它工作得很好。


dmesg | grep firmware command result:
dmesg | grep iwl
[    2.836895] iwlwifi 0000:02:00.0: irq 60 for MSI/MSI-X
[    3.143750] iwlwifi 0000:02:00.0: request for firmware file 'iwlwifi-7260-7.ucode' failed.
[    3.143769] iwlwifi 0000:02:00.0: no suitable firmware found!
[  206.231931] iwlwifi 0000:02:00.0: irq 60 for MSI/MSI-X
[  206.234528] iwlwifi 0000:02:00.0: request for firmware file 'iwlwifi-7260-7.ucode' failed.
[  206.234533] iwlwifi 0000:02:00.0: no suitable firmware found!
[  416.621741] iwlwifi 0000:02:00.0: irq 60 for MSI/MSI-X
[  416.625783] iwlwifi 0000:02:00.0: loaded firmware version 22.1.7.0 op_mode iwlmvm
[  416.636008] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[  416.636132] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[  416.636342] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[  416.844538] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[  416.857390] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[  416.857596] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
cris@christi:/lib/firmware$ dmesg | grep firmware
[    3.143750] iwlwifi 0000:02:00.0: request for firmware file 'iwlwifi-7260-7.ucode' failed.
[    3.143769] iwlwifi 0000:02:00.0: no suitable firmware found!
[  206.234528] iwlwifi 0000:02:00.0: request for firmware file 'iwlwifi-7260-7.ucode' failed.
[  206.234533] iwlwifi 0000:02:00.0: no suitable firmware found!
[  416.625783] iwlwifi 0000:02:00.0: loaded firmware version 22.1.7.0 op_mode iwlmvm

答案1

我建议您尝试更新的固件文件。使用有效的有线以太网连接,请打开终端并执行以下操作:

cd /lib/firmware
sudo mv iwlwifi-7260-7.ucode  iwlwifi-7260-7.ucode.bak
sudo wget https://git.kernel.org/cgit/linux/kernel/git/egrumbach/linux-firmware.git/plain/iwlwifi-7260-7.ucode

卸载并重新加载驱动程序,以便它能够看到并使用较新的固件:

sudo modprobe -r iwldvm
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi

断开以太网,你的无线网络就应该可以正常工作了。

如果仍然不起作用,请检查信息线索:

dmesg | grep iwl

oem-wireless-bluetooth 软件包会安装 iwlwifi 的早期版本,该版本要求 7260-6.ucode。更稳定的版本是 7260-7.ucode。虽然您已经安装了较新的固件,但安装的驱动程序仍在调用较旧的固件。让我们来修复它:

sudo apt-get remove --purge oem-wireless-bluetooth-intel-7260-dkms*

将此文件下载到您的桌面:http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.12.8/backports-3.12.8-1.tar.xz 右键单击它并选择“在此处提取”。返回终端:

cd ~/Desktop/backports-3.12.8-1
make defconfig-iwlwifi
make
sudo make install

重新启动并让我们听取您的报告。

相关内容