我在 Ubuntu 16.04 之后安装了 Windows 10 试用版,Ubuntu 的 wifi 和以太网停止工作。我的 Ubuntu 曾经出现过一些 wifi 连接问题(速度慢或无法连接,这在所有 Ubuntu 系统上都会发生,所以这是另一个问题。),但以太网通常可以正常工作。Windows 10 的以太网或 wifi 工作正常。我怀疑存在驱动程序冲突,但我不知道该怎么办。
这个答案这里建议一个以太网解决方案,但我找不到针对 wifi 连接的类似解决方案。
Ubuntu 也因得不到大多数 wifi 芯片组制造商的良好支持而闻名,因此我尝试了三个 wifi 适配器 rtl8192cu、TL-WN722N_V3(rtl8188eu) 和 TP-Link TL-WR710N (Atheros AR9331)。网络管理器显示它们都可以检测到来自不同路由器的 wifi 信号,但当我使用浏览器或 ping 命令时,它们无法连接到互联网。
我可以连接到路由器192.168.1.1。
我无法连接到https://tplinklogin.net,或192.168.1.254,这是用于设置wifi适配器TL-WR710N的管理页面。
我无法通过 USB 网络共享或 Wi-Fi 热点将手机数据计划连接到互联网。
lshw -C network
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: Ethernet Connection (2) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 00
serial: 30:9c:23:3c:a9:be
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.8-4 ip=192.168.1.29 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:130 memory:df200000-df21ffff
*-network:0
description: Wireless interface
physical id: 1
bus info: usb@1:7
logical name: wlxe84e0624c146
serial: e8:4e:06:24:c1:46
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu multicast=yes wireless=unassociated
*-network:1
description: Wireless interface
physical id: 2
bus info: usb@1:14
logical name: wlx503eaa705446
serial: 50:3e:aa:70:54:46
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8188eu ip=192.168.1.6 multicast=yes wireless=IEEE 802.11bgn
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
iwconfig
wlxe84e0624c146 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
enp0s31f6 no wireless extensions.
lo no wireless extensions.
wlx503eaa705446 IEEE 802.11bgn ESSID:"CASAYES-2G" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.412 GHz Access Point: 18:9C:27:E6:B1:8F
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=91/100 Signal level=67/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig
enp0s31f6 Link encap:Ethernet HWaddr 30:9c:23:3c:a9:be
inet addr:192.168.1.29 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::8b5f:698f:176f:b36c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:427 errors:0 dropped:0 overruns:0 frame:0
TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37526 (37.5 KB) TX bytes:38005 (38.0 KB)
Interrupt:16 Memory:df200000-df220000
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:12964 errors:0 dropped:0 overruns:0 frame:0
TX packets:12964 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1170822 (1.1 MB) TX bytes:1170822 (1.1 MB)
wlx503eaa705446 Link encap:Ethernet HWaddr 50:3e:aa:70:54:46
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::b67f:6542:b17c:707c/64 Scope:Link
inet6 addr: 2605:e000:150f:c6a8:11dc:e022:1911:ccef/64 Scope:Global
inet6 addr: 2605:e000:150f:c6a8::1/128 Scope:Global
inet6 addr: 2605:e000:150f:c6a8:83f2:e92e:d885:6fd3/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4029 (4.0 KB) TX bytes:18154 (18.1 KB)
wlxe84e0624c146 Link encap:Ethernet HWaddr e8:4e:06:24:c1:46
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:6 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)
答案1
您应该更新您的内核版本或尝试找到兼容的版本。
一般来说,在当前发行版上运行升级应该会安装更新的内核,理想情况下可以解决你的问题
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
如果此后您仍然遇到驱动程序问题,那么您必须手动进行内核降级来解决您的问题。
尝试一下这个指南:
https://itsfoss.com/upgrade-linux-kernel-ubuntu/
或者,如果您想使用终端风格,请使用本指南获取稳定的内核版本并进行相应更新。
编辑:根据您的评论,您可以尝试使用 dhclient 强制配置例如,使用 wlx503eaa705446 适配器
sudo dhclient wlx503eaa705446
这应该强制进行网络配置以进行正确的 DNS 解析。