遇到Ubuntu网卡突然不能使用,无法连接wifi。
进行网络重启即解决:
# Step 1:进入/var/lib/NetworkManager,对原NetworkManager.state进行备份(以防万一)
cd /var/lib/NetworkManager
sudo cp NetworkManager.state NetworkManager.state_bak
# Step 2:关掉network-manager服务,并删除NetworkManager.state
sudo service network-manager stop
sudo rm NetworkManager.state
# Step 3:重启network-manager服务
sudo service network-manager start