- 问题描述: 博主是双系统电脑,Windows可以正常使用有线网络,Ubuntu却无法使用,也没有图标
- 问题解决:
- 认为Ubuntu没有安装对应驱动,所以首先寻找设备网卡型号
在终端输入lspci
终端显示
00:00.0 Host bridge: Intel Corporation Device 9b53 (rev 03)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 03)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Device a3af
00:14.2 Signal processing controller: Intel Corporation Device a3b1
00:16.0 Communication controller: Intel Corporation Device a3ba
00:17.0 SATA controller: Intel Corporation Device a382
00:1b.0 PCI bridge: Intel Corporation Device a3eb (rev f0)
00:1c.0 PCI bridge: Intel Corporation Device a393 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a3c8
00:1f.2 Memory controller: Intel Corporation Device a3a1
00:1f.3 Audio device: Intel Corporation Device a3f0
00:1f.4 SMBus: Intel Corporation Device a3a3
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1e84 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10f8 (rev a1)
01:00.2 USB controller: NVIDIA Corporation Device 1ad8 (rev a1)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1ad9 (rev a1)
02:00.0 Non-Volatile memory controller: Sandisk Corp Device 5009 (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8125 (rev 04)
认准最后一行:Ethernet controller
所以设备名为Realtek Semiconductor Co., Ltd. Device 8125
- 安装网卡Realtek 8125的驱动
git clone https://github.skybox.app/awesometic/realtek-r8125-dkms.git
cd realtek-r8125-dkms/
./autorun.sh
就安装好了
- 检查,在终端输入
ip a
可以看到多出来一个enp3s0,至此问题解决