有几次Vmware进程卡死直接关掉之后,再开机Ubuntu就没法联网了,setting中网络连接的设置也找不到了。
找到这个解决方法
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
vim /etc/NetworkManager/NetworkManager.conf
# 这是文档内容
# [main]
# plugins=ifupdown,keyfile
#
# [ifupdown]
# managed=false
#
# [device]
# wifi.scan-rand-mac-address=no
# 把 managed=false 改成 managed=true
sudo service network-manager start
[ifupdown]
managed
If set to true, then interfaces listed in/etc/network/interfaces
are managed by NetworkManager. If set to false, then any interface listed in/etc/network/interfaces
will be ignored by NetworkManager. Remember that NetworkManager controls the default route, so because the interface is ignored, NetworkManager may assign the default route to some other interface.
但是查了文档,也没搞懂改成true的必要性,原post也没有任何解释。感觉只需要启动network-manager就可以了,下次有机会尝试。