我跟着这个堆栈帖子它不适用于 Linux mint。
尝试安装rtl8723de驱动程序但返回错误
$sudo apt-get install build-essential git dkms
...
$git clone -b 4.10-down https://github.com/jeremyb31/rtl8723de.git
$sudo dkms add ./rtl8723de
$sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' all KVER=4.15.0-66-generic...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.15.0-66-generic (x86_64)
Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.
我的网卡
$lspci -nnk | grep 0280 -A3
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]
Subsystem: Hewlett-Packard Company Device [103c:8319]
sudo lshw -class 网络给出
$ sudo lshw -class network
*-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:01:00.0
logical name: eno1
version: 15
serial: ac:e2:d3:7d:2b:76
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.045.08-NAPI duplex=full ip=192.168.1.15 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:125 ioport:4000(size=256) memory:b1104000-b1104fff memory:b1100000-b1103fff
*-network UNCLAIMED
description: Network controller
product: Realtek Semiconductor Co., Ltd.
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: ioport:3000(size=256) memory:b1000000-b100ffff
-
$ip a
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: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether ac:e2:d3:7d:2b:76 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.15/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1
valid_lft 84388sec preferred_lft 84388sec
inet6 fe80::3866:d5e2:5cf7:7430/64 scope link noprefixroute
valid_lft forever preferred_lft forever
这是我的默认网络接口
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
这是驱动程序安装:
$ sudo apt-get install r8168-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
r8168-dkms is already the newest version (8.045.08-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
-
$ uname -a
Linux XXX-HP-Laptop-15-bs0xx 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux