不知道是什么原因,突然没法联网,在settings中也找不到wired connected这个设置选项,试了各种方法也没有解决,最后在知乎上看到一个解决方案,试了一下发现可行。
首先输入
sudo lshw -c Network
运行结果
*-network DISABLED
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:02:01.0
logical name: ens33
version: 01
serial: 00:0c:29:b3:b1:ef
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list rom ethernet physical logical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=5.13.0-51-generic duplex=full latency=0 link=no mingnt=255 multicast=yes port=twisted pair speed=1Gbit