2012年5月3日星期四
Ubuntu12.04LTS版本的NetworkManager的Device Not Managed问题解决
环境:Windows7 64bit,VMware Workstation 8.0.2
安装方式:Ubuntu12.04i386 Alternative版
症状描述:安装完成后只有shell,无桌面。
先安装桌面环境
$sudo apt-get install ubuntu-desktop
重启进入桌面,发现Network Manager图标发生“Device not managed”错误,且图标状态为未连通网络,即,但实际网络保持连通。
解决:
1、查看/etc/network/interfaces
$sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
安装方式:Ubuntu12.04i386 Alternative版
症状描述:安装完成后只有shell,无桌面。
先安装桌面环境
$sudo apt-get install ubuntu-desktop
重启进入桌面,发现Network Manager图标发生“Device not managed”错误,且图标状态为未连通网络,即,但实际网络保持连通。
解决:
1、查看/etc/network/interfaces
$sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
2、去掉有关eth0的描述,即
$sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
3、重启Network Manager
$sudo service network-manager restart
即正常。
还有另外一种解决方法:
1. 编辑/etc/NetworkManager/NetworkManager.conf:
sudo vi /etc/NetworkManager/NetworkManager.conf
将其中的managed=false改为managed=true
2.重启network-manager service:
sudo service network-manager restart
具体原理涉及Ubuntu管理网络的机制,即/etc/network/interfaces、Network Manager之间的互动,有时间再研究。
标签: Network Manager, Ubuntu12.04
订阅 博文 [Atom]