Contents

The solution for the Ubuntu virtual machine cannot connect to the network and the network icon in the upper right corner is missing

排查网卡问题

1
ip a

/images/2022-10-15-Ubuntu虚拟机连接不上网络,右上角网络图标不见的解决办法/1

只有一个127.0.0.1的网卡

解决办法

1、删除 NetworkManager 缓存文件

1
2
3
service NetworkManager stop
rm /var/lib/NetworkManager/NetworkManager.state
service NetworkManager start

2、修改/etc/NetworkManager/NetworkManager.conf

1
managed=true 

3、重启 NetworkManager

1
service NetworkManager restart