我在戴尔电脑上安装了 Ubuntu 16.04 LTS 和 Windows 10 双启动系统。我们买了一个新路由器后,它没有检测到任何无线网络。网络已打开,但显示“没有可用的网络设备”。(看起来像这)。
解决方法
我做完后就让它工作了
rfkill unblock all
sudo /etc/init.d/networking restart
sudo reboot
我启动到 Windows,它连接到 wifi,并且 wifi 可以在 Linux 上运行。
如果我重新启动计算机而不解除阻止或重新启动,它就会再次停止工作。我认为在 Linux 上工作之前,我还需要 Windows 连接到 wifi。
这是没有wifi时的网络信息:
$ sudo lshw -c network
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:06:00.0
logical name: wlp6s0
version: 6b
serial: 5c:c5:d4:1d:76:9e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-21-generic firmware=16.242414.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
resources: irq:58 memory:f7c00000-f7c01fff
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5c:c5:d4:1d:76:9e brd ff:ff:ff:ff:ff:ff
$ ifconfig -a
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:2740 errors:0 dropped:0 overruns:0 frame:0
TX packets:2740 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:202624 (202.6 KB) TX bytes:202624 (202.6 KB)
wlp6s0 Link encap:Ethernet HWaddr 5c:c5:d4:1d:76:9e
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)
这是有wifi的时候的网络信息:
$ sudo lshw -c network
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:06:00.0
logical name: wlp6s0
version: 6b
serial: 5c:c5:d4:1d:76:9e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-21-generic firmware=16.242414.0 ip=192.168.0.143 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
resources: irq:57 memory:f7c00000-f7c01fff
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 5c:c5:d4:1d:76:9e brd ff:ff:ff:ff:ff:ff
inet 192.168.0.143/24 brd 192.168.0.255 scope global dynamic wlp6s0
valid_lft 86248sec preferred_lft 86248sec
inet6 fe80::6aa0:ba66:c808:535f/64 scope link
valid_lft forever preferred_lft forever
$ ifconfig -a
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:211 errors:0 dropped:0 overruns:0 frame:0
TX packets:211 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:15779 (15.7 KB) TX bytes:15779 (15.7 KB)
wlp6s0 Link encap:Ethernet HWaddr 5c:c5:d4:1d:76:9e
inet addr:192.168.0.143 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6aa0:ba66:c808:535f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:700 errors:0 dropped:0 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37793 (37.7 KB) TX bytes:17856 (17.8 KB)
我注意到的最大区别是当没有wifi时,电脑似乎没有ip。
我尝试了很多方法,但都没有用
- 重新启动计算机
- 从 USB 重新安装 Ubuntu
- 从原始 iso 更新无线驱动程序(以下这博客文章)
欢迎对问题提出任何见解或建议!