今天我安装了 Ubuntu 15.10,但无法使用无线连接上网。连接信息显示我已连接,但我什么也做不了。当我用有线连接时,一切正常。我尝试连接我在 raspberry pi 中使用的 WiFi 加密狗,一切正常。这是我使用 WiFi 加密狗的 ifconfig:
enp2s0 Link encap:Ethernet HWaddr 00:26:2d:50:42:db
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16
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:65536 Metric:1
RX packets:2468 errors:0 dropped:0 overruns:0 frame:0
TX packets:2468 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:247229 (247.2 KB) TX bytes:247229 (247.2 KB)
wlp3s0 Link encap:Ethernet HWaddr 00:17:c4:b5:11:06
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:129 errors:0 dropped:0 overruns:0 frame:0
TX packets:413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18927 (18.9 KB) TX bytes:44320 (44.3 KB)
wlx243c200d02b2 Link encap:Ethernet HWaddr 24:3c:20:0d:02:b2
inet addr:192.168.0.109 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::263c:20ff:fe0d:2b2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12989 errors:0 dropped:0 overruns:0 frame:0
TX packets:11258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10695403 (10.6 MB) TX bytes:1594026 (1.5 MB)
lspci -nnk | grep -iA2 net 命令输出:
02:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe [14e4:1698] (rev 10)
Subsystem: Acer Incorporated [ALI] Device [1025:0207]
Kernel driver in use: tg3
03:00.0 Network controller [0280]: Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
Subsystem: Quanta Microsystems, Inc EM306 802.11bgn Wireless Half-size Mini PCIe Card [AR9283] [1a32:0306]
Kernel driver in use: ath9k
lshw -c net 命令输出:
*-network
description: Ethernet interface
product: NetLink BCM5784M Gigabit Ethernet PCIe
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 10
serial: 00:26:2d:50:42:db
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=sb v2.19 latency=0 link=no multicast=yes port=twisted pair
resources: irq:32 memory:f4100000-f410ffff
*-network
description: Wireless interface
product: AR928X Wireless Network Adapter (PCI-Express)
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 01
serial: 00:17:c4:b5:11:06
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.3.3-040303-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:f4200000-f420ffff
答案1
您应该设置您的国家代码,脚本结果将表明您在波兰
sudo iw reg set PL
然后我们将更改 crda 文件
gksudo gedit /etc/default/crda
该文件的最后一行需要
REGDOMAIN=PL
保存文件并退出 gedit。然后使用网络管理器连接设置并将 IPv6 设置为忽略您的连接,并在 IPv4 设置中添加 DNS 8.8.8.8 并保存。重新启动并查看您是否可以建立任何连接