我在 SSD 上的新台式电脑上安装了 Ubuntu 18,并在另一台 SSD 上安装了 Windows 双启动。我家里的 wifi 一直运行良好,直到有一天,突然无法再连接。我在 wifi 列表中看到了无线网络,但无法连接,它会无限期地加载。以太网连接也存在同样的问题,因此任何不需要下载的解决方案都将不胜感激。此外,当我在 Windows 上启动时,wifi 和以太网都可以正常工作。
以下是一些经典命令的输出:
猫/等/网络/接口
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
命令lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.7 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #8 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
03:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 13)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Wireless Network Adapter (rev 01)
sudo lshw -C 网络
*-network
description: Ethernet interface
produit: Killer E220x Gigabit Ethernet Controller
fabriquant: Qualcomm Atheros
identifiant matériel: 0
information bus: pci@0000:03:00.0
nom logique: enp3s0
version: 13
numéro de série: d4:3d:7e:f3:24:67
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx latency=0 link=no multicast=yes port=twisted pair
ressources: irq:19 mémoire:f7200000-f723ffff portE/S:d000(taille=128)
*-network
description: Interface réseau sans fil
produit: RTL8812AE 802.11ac PCIe Wireless Network Adapter
fabriquant: Realtek Semiconductor Co., Ltd.
identifiant matériel: 0
information bus: pci@0000:04:00.0
nom logique: wlp4s0
version: 01
numéro de série: 18:31:bf:a4:53:bf
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8821ae driverversion=4.15.0-36-generic firmware=N/A latency=0 link=yes multicast=yes wireless=IEEE 802.11
ressources: irq:29 portE/S:c000(taille=256) mémoire:f7100000-f7103fff
sudo lsmod(唯一有趣的行)
rtl8821ae 233472 0
sudo nmcli 设备显示 wlp4s0 | grep IP4.DNS
nothing happens
IP地址
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether d4:3d:7e:f3:24:67 brd ff:ff:ff:ff:ff:ff
3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 18:31:bf:a4:53:bf brd ff:ff:ff:ff:ff:ff
inet6 2a01:cb05:88e4:e100:5132:49f4:7367:c3d5/64 scope global temporary dynamic
valid_lft 1800sec preferred_lft 600sec
inet6 2a01:cb05:88e4:e100:4fb8:453c:31b2:7919/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 1800sec preferred_lft 600sec
inet6 fe80::b75f:a43e:44e9:3449/64 scope link noprefixroute
valid_lft forever preferred_lft forever
我还尝试更改 /etc/network/interfaces 并将其添加到文件末尾:
auto wlp4s0
iface wlp4s0 inet dhcp
wpa-essid myssid
wpa-psk mypassword
结果是我再也看不到 wifi 网络,并在无线网络管理器上收到一条消息:“不支持”(翻译)
连接似乎卡在第 70 阶段:IP 配置
编辑1: 我尝试从旧内核(Linux 4.15.0-34-generic 而不是 0-36-generic)启动,但遇到了同样的问题。
编辑2: 尝试使用以太网电缆连接,同样的无限加载问题,以太网连接在 Windows 启动时有效
编辑3: 以下命令出现错误:sudo dhclient wlp4s0
dhclient: error while loading shared libraries: libz.so.1: cannot open shared object file: Error 20
你知道为什么 Wi-Fi 停止工作了,而在我看来计算机或网络上没有任何变化吗?
多谢!
答案1
根据编辑 3 的信息,问题已解决。
我为可能遇到同样问题的人发布了答案。
我使用另一台计算机从下载了 zlib1g 包https://packages.ubuntu.com/trusty/zlib1g-dev
然后在不工作的 wifi 电脑上安装
sudo dpkg -i zlib1g-dev_1.2.8.dfsg-1ubuntu1_amd64.deb
然后又
sudo dhclient wlp4s0
一切恢复正常。不知道这个问题是从哪里来的。