我最近在我的 Dell Inspiron 1545 笔记本电脑上安装了 Ubuntu。
我可以通过以太网连接到互联网,但无线无法使用。弹出输入 wifi 密码的提示,但当我输入密码时,它只是说正在连接,然后再次出现输入密码的提示!提示每隔两三分钟就会出现一次,但还是会发生同样的事情。
我尝试使用 Windows 无线驱动程序安装驱动程序,但似乎无法弄清楚。我的无线网卡是 Atheros AR928X。这是我第一次使用 Ubuntu。
以下是我被要求运行的命令的输出:
1- 输出lspci -nnk | grep -iA2 net
$ lspci -nnk | grep -iA2 net
09:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller [11ab:4354] (rev 13)
Subsystem: Dell Device [1028:02aa]
Kernel driver in use: sky2
--
0c:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
Subsystem: Atheros Communications Inc. Device [168c:0200]
Kernel driver in use: ath9k
2- 输出lsusb
$ lsusb
Bus 001 Device 003: ID 0c45:63ee Microdia
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
3- 的输出nm-tool
,sudo iwlist scan
和iwconfig
$ nm-tool
NetworkManager Tool
State: connected (global)
- Device: eth0 [Wired connection 1] -------------------------------------------
Type: Wired
Driver: sky2
State: connected
Default: yes
HW Address: 00:25:64:44:02:7D
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
IPv4 Settings:
Address: 192.168.1.90
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.254
DNS: 192.168.1.254
DNS: 75.153.176.9
- Device: wlan0 ----------------------------------------------------------------
Type: 802.11 WiFi
Driver: ath9k
State: disconnected
Default: no
HW Address: 00:22:5F:C2:08:1F
Capabilities:
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points
beau: Infra, 00:26:B8:ED:E6:CC, Freq 2422 MHz, Rate 54 Mb/s, Strength 95 WPA
verjee: Infra, F0:D1:A9:14:03:7A, Freq 2452 MHz, Rate 54 Mb/s, Strength 32 WPA2
$ sudo iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:26:B8:ED:E6:CC
Channel:3
Frequency:2.422 GHz (Channel 3)
Quality=64/70 Signal level=-46 dBm
Encryption key:on
ESSID:"beau"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000024523a5e000
Extra: Last beacon: 36ms ago
IE: Unknown: 000462656175
IE: Unknown: 010882848B962430486C
IE: Unknown: 030103
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: Unknown: 32040C121860
IE: Unknown: 2D1A6C181BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1603001300000000000000000000000000000000000000
IE: Unknown: DD090010180202F0050000
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C336C181BFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C3403001300000000000000000000000000000000000000
Cell 02 - Address: F0:D1:A9:14:03:7A
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=27/70 Signal level=-83 dBm
Encryption key:on
ESSID:"verjee"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000173491f180
Extra: Last beacon: 3636ms ago
IE: Unknown: 00067665726A6565
IE: Unknown: 010882848B960C121824
IE: Unknown: 030109
IE: Unknown: 0706434120010B1E
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1AAD511BFFFF000000000000000000000000000000000000000000
IE: Unknown: 33027E9D
IE: Unknown: 3D1609080400000000000000000000000000000000000000
IE: Unknown: 46050200010000
IE: Unknown: DD180050F2020101010003A4000027A4000042435E0062322F00
IE: Unknown: DD0700039301730B20
IE: Unknown: DD0E0017F20700010106F0D1A914037A
$ iwconfig
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
lo no wireless extensions.
eth0 no wireless extensions.
Authentication Suites (1) : PSK
4- 输出rfkill list all
$ rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
5- 输出lsmod
$ lsmod
Module Size Used by
bnep 17791 2
rfcomm 38104 0
bluetooth 189625 10 bnep,rfcomm
parport_pc 32115 0
ppdev 12850 0
snd_hda_codec_idt 60238 1
arc4 12474 2
snd_hda_intel 32983 5
snd_hda_codec 116477 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 13277 1 snd_hda_codec
joydev 17394 0
ath9k 122028 0
mac80211 475546 1 ath9k
snd_pcm 81124 3 snd_hda_intel,snd_hda_codec
snd_seq_midi 13133 0
snd_rawmidi 25426 1 snd_seq_midi
snd_seq_midi_event 14476 1 snd_seq_midi
ath9k_common 13782 1 ath9k
ath9k_hw 384090 2 ath9k,ath9k_common
i915 479235 4
uvcvideo 72249 0
snd_seq 51594 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28932 2 snd_pcm,snd_seq
snd_seq_device 14138 3 snd_seq_midi,snd_rawmidi,snd_seq
videobuf2_core 32212 1 uvcvideo
ath 19436 3 ath9k,ath9k_common,ath9k_hw
drm_kms_helper 47459 1 i915
cfg80211 181041 3 ath9k,mac80211,ath
drm 240443 5 i915,drm_kms_helper
psmouse 91381 0
videodev 100265 2 uvcvideo,videobuf2_core
snd 62675 18 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
videobuf2_vmalloc 12757 1 uvcvideo
videobuf2_memops 13213 1 videobuf2_vmalloc
dell_wmi 12602 0
coretemp 13362 0
sparse_keymap 13659 1 dell_wmi
gpio_ich 13160 0
wmi 18745 1 dell_wmi
dell_laptop 17210 0
microcode 18396 0
dcdbas 14099 1 dell_laptop
soundcore 14636 1 snd
snd_page_alloc 14109 2 snd_hda_intel,snd_pcm
serio_raw 13032 0
lpc_ich 16993 0
i2c_algo_bit 13317 1 i915
mac_hid 13078 0
video 19117 1 i915
lp 17456 0
parport 40931 3 parport_pc,ppdev,lp
ums_realtek 17929 0
usb_storage 39720 1 ums_realtek
ahci 25621 2
libahci 26166 1 ahci
sky2 53629 0
6- Modprobing
echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf
options ath9k nohwcrypt=1
sudo modprobe -rfv ath9k
rmmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
rmmod /lib/modules/3.5.0-37-generic/kernel/net/mac80211/mac80211.ko
rmmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
rmmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
rmmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath.ko
rmmod /lib/modules/3.5.0-37-generic/kernel/net/wireless/cfg80211.ko
sudo modprobe -v ath9k
insmod /lib/modules/3.5.0-37-generic/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath.ko
insmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
insmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
insmod /lib/modules/3.5.0-37-generic/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/3.5.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko nohwcrypt=1
7- dmesg 的输出 | egrep 'ath|firm|wlan|network|wpa'
欢迎任何帮助!
答案1
我在使用 RealTek RTL8188EEE 无线网卡和 Ubuntu 13.04 时也遇到了同样的问题。快速解决方案是输入我的无线路由器的 IP,然后将其从 AES 更改为 TKIP-AES。这可以让我无线网络上的其他系统正常运行,然后 Ubuntu 突然获取了密码并以 72Mb/s 的连接速度连接了我。
由于我是从 DVD 运行的,所以我没法做太多事情,所以在安装之前要确保它能正常工作。我曾看到过建议执行 NDISWrapper 然后重新启动 - 这对 DVD 没有帮助。
希望这对其他人有所帮助。可能对最初发帖的人帮助太晚了,但也许对其他人有帮助。如果您不能使用 TKIP-AES,请尝试从 AES 改为 TKIP。另一个论坛也建议这样做。
答案2
为了准确起见,请一次复制并粘贴一行命令:
echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k
此外,如果有此选项,最好将路由器中的加密设置为 wpa2,方法是在具有以太网连接时在 Web 浏览器中输入 192.168.0.1 或与这些数字非常相似的内容,您可能必须查看路由器的文档以了解要输入的确切数字。
还可以尝试路由器中的通道 1 或 11。
您可以谷歌搜索路由器的文档。请在网络管理器中设置您的无线设置以匹配屏幕截图。
您还应该在网络管理器中删除您的连接并重置您的路由器,然后重新启动您的计算机。
答案3
确保你已经通过以下方式安装了无线工具sudo apt-get 安装无线工具
这将提供更好的 GUI 来连接到现有的无线网络。
尝试 ping 任何站点(本地计算机或非本地计算机)以测试其是否正常工作。您可能会收到特定错误,这可能意味着某些设置已关闭。