问题的呈现:VMware上的ubuntu20.05突然ping 不通,显示域名解析失败,无法上网
解决方法:
1、删除NetworkManager缓存文件
service NetworkManager stop
rm /var/lib/NetworkManager/NetworkManager.state
service NetworkManager start
2、修改/etc/NetworkManager/NetworkManager.conf
managed=true
3、重启NetworkManager
service NetworkManager restart