1、首先确保网卡设备名称能看到,看不到,以下步骤无意义;
sudo lshw -c network
结果
*-network DISABLED
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 5
bus info: pci@0000:02:05.0
logical name: ens37
version: 01
serial: 00:0c:29:a0:d1:f4
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 66MHz
2、命令行执行以下命令;
sudo service NetworkManager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo vi /etc/NetworkManager/NetworkManager.conf
这一步将打开一个文件,把里面的managed=false改为managed=true 再保存。
sudo service NetworkManager start
标签:network,service,Ubuntu22.04,sudo,网卡,丢失,NetworkManager
From: https://www.cnblogs.com/chengqiang521/p/16621011.html