问题描述
- 使用network-manager相关命令,如sudo service network-manager stop、sudo service network-manager start等发生报错。
- Ubuntu 右上角网络图标消失
解决方法
Ubuntu 20.* 版本
貌似20.* 版本以后 network-manager
变成了 NetworkManager
,因此,只要把命令中的network-manager
换成 NetworkManager
就行了。
sudo service NetworkManager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service NetworkManager start
sudo gedit /etc/NetworkManager/NetworkManager.conf
//把false改成true
sudo service NetworkManager restart
Ubuntu 非20.* 版本
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager start
sudo gedit /etc/NetworkManager/NetworkManager.conf
//把false改成true
sudo service network-manager restart
标签:network,service,sudo,manager,Ubuntu,NetworkManager
From: https://www.cnblogs.com/sodie/p/18499733