a. 执行如下两条命令:
Sudo systemctl enables the network manager sudo dhclient ens33
查看
sudo ifconfig ens33 sudo dhclinet ens33 # 手动获取ip sudo ifconfig ens33 # 查看
或者 b. 执行命令:
su root VIM / etc / netplan / 01 is owned by the network manager.yaml network: ethernets: ens33: dhcp4: true optional: true wifis: wlan0: dhcp4: true optional: true access-points: \"WIFINAME\": password: \"xxxx\" version: 2netplan try --debugSystemctl restart the network manager
再次尝试