ubuntu 16.04 LTS 网络连接图标 (Network Connections) 异常





ubuntu 16.04 LTS 网络连接图标 (Network Connections) 异常

1. SOLUTION

sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager start

sudo gedit /etc/NetworkManager/NetworkManager.conf

managed=false ===>>> managed=true

sudo service network-manager restart

2. COMMAND LINE

strong@foreverstrong:~/Desktop$ sudo service network-manager stop
[sudo] password for strong: 
network-manager stop/waiting
strong@foreverstrong:~/Desktop$ sudo rm /var/lib/NetworkManager/NetworkManager.state 
strong@foreverstrong:~/Desktop$ 
strong@foreverstrong:~/Desktop$ sudo service network-manager start
network-manager start/running, process 2618
strong@foreverstrong:~/Desktop$ sudo service network-manager start
start: Job is already running: network-manager
strong@foreverstrong:~/Desktop$ 
strong@foreverstrong:~/Desktop$ sudo gedit /etc/NetworkManager/NetworkManager.conf 

(gedit:3043): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:3043): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

strong@foreverstrong:~/Desktop$ cat /etc/NetworkManager/NetworkManager.conf 
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

no-auto-default=0C:C4:7A:82:24:67,

[ifupdown]
managed=true

strong@foreverstrong:~/Desktop$ sudo service network-manager stop
network-manager stop/waiting
strong@foreverstrong:~/Desktop$ sudo service network-manager start
network-manager start/running, process 3090

strong@foreverstrong:~/Desktop$ cat /etc/NetworkManager/NetworkManager.conf 
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

no-auto-default=0C:C4:7A:82:24:67,

[ifupdown]
managed=true
strong@foreverstrong:~/Desktop$ 

IMPORTANT NOTICE: NetworkManager.conf

strong@foreverstrong:~/Desktop$ 
strong@foreverstrong:~/Desktop$ ll /etc/NetworkManager/
total 44
drwxr-xr-x   8 root root  4096 Dec 19  2017 ./
drwxr-xr-x 148 root root 12288 Aug 27 10:02 ../
drwxr-xr-x   2 root root  4096 Dec 19  2017 conf.d/
drwxr-xr-x   5 root root  4096 Dec 19  2017 dispatcher.d/
drwxr-xr-x   2 root root  4096 Feb 22  2017 dnsmasq.d/
drwxr-xr-x   2 root root  4096 Feb 22  2017 dnsmasq-shared.d/
-rw-r--r--   1 root root    76 Jan 12  2017 NetworkManager.conf
drwxr-xr-x   2 root root  4096 Jun 29 16:40 system-connections/
drwxr-xr-x   2 root root  4096 Aug  1  2017 VPN/
strong@foreverstrong:~/Desktop$

IMPORTANT NOTICE: managed=false ==>> managed=true

strong@foreverstrong:~/Desktop$ cat /etc/NetworkManager/NetworkManager.conf 
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false
strong@foreverstrong:~/Desktop$