这是联想 Legion Y520 双启动系统,带有 Ubuntu 16.04 和 Windows 10。今天早上无线连接工作正常,两个连接在 Windows 中仍然有效。有时不得不切换操作系统,我知道我apt update && apt upgrade
今天早上就切换了。我也尝试过在 Ubuntu 中连接蓝牙设备,但失败了(它配对了但没有显示为音频设备),但这是我现在遇到的最不重要的问题。
所有无线连接都可见,但就是无法连接,有线连接只是无限期地显示“正在连接”。今天剩下的时间我什么开发都没做,所以请求帮助。救命啊 :)
以下是一些分析。连接可见,但我无法 ping 任何内容。此外,面板中没有连接图标。
输出ifconfig
:
enp3s0 Link encap:Ethernet HWaddr 54:e1:ad:d2:04:e3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2790 errors:0 dropped:4 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:198797 (198.7 KB) TX bytes:108 (108.0 B)
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:10168 errors:0 dropped:0 overruns:0 frame:0
TX packets:10168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:548164 (548.1 KB) TX bytes:548164 (548.1 KB)
wlp2s0 Link encap:Ethernet HWaddr e8:2a:44:fe:93:35
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)
输出lshw -C network
:
*-network
description: Wireless interface
product: QCA6174 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 32
serial: e8:2a:44:fe:93:35
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=4.15.0-48-generic firmware=WLAN.RM.4.4.1-00079-QCARMSWPZ-1 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:139 memory:a4200000-a43fffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 10
serial: 54:e1:ad:d2:04:e3
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:19 ioport:3000(size=256) memory:a4504000-a4504fff memory:a4500000-a4503fff
一些lspci
东西:
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
我的/etc/network/interfaces
样子是这样的:
auto lo
iface lo inet loopback
我尝试过多次重置并重新安装network-manager
驱动r8168
程序(r8168-dkms_8.045.08-2_all.deb
)。还尝试过从旧内核启动,但我不确定我期望的是什么。
欢迎提出任何建议,谢谢。
编辑:有两件事很突出dmesg less
:
[ 1.594537] PKCS#7 signature not signed with a trusted key
[ 1.594545] r8168: loading out-of-tree module taints kernel.
[ 1.594632] r8168: module verification failed: signature and/or required key missing - tainting kernel
[ 1.595852] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded
还有更多r8168
东西,
和
[ 9.946492] audit: type=1400 audit(1557504826.227:38): apparmor="DENIED" operation="open" profile="/usr/lib/NetworkManager/nm-dhcp-helper" name="/usr/local/lib/libz.so.1.2.9" pid=1717 comm="nm-dhcp-helper" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
因为我早上遇到了一个 opencv 问题,通过安装解决了libz.so.1.2.9
:https://stackoverflow.com/a/48579743