如果内核版本太旧会导致识别不了网卡驱动,使用
sudo lshw -c Network
会发现
*-network:0 UNCLAIMED
description: Network controller
product: Raptor Lake PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix cap_list
configuration: latency=0
resources: iomemory:610-60f memory:6103184000-6103187fff
*-network:1 UNCLAIMED
description: Ethernet controller
product: Ethernet Connection (23) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi cap_list
configuration: latency=0
resources: memory:5e580000-5e59ffff
-network:0 UNCLAIMED
即使你去下载对应的驱动,安装后也还是用不了网络,所以只能更换内核。
添加一个新的PPA源
sudo add-apt-repository ppa:cappelikan/ppa -y
安装Mainline Kerenl
sudo apt install mainline -y
打开后选择合适的内核版本安装,安装后勾选,重启后就会发现有线无线都回来了