当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 8.10上网后,重启不能上网,机器dell1535,上网方式先无线接猫,在宽带
帖子发表于 : 2009-01-23 13:25 

注册: 2009-01-23 13:19
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
在网上查到下面的文章
11月12日
Ubuntu 8.10 NetworkManager(nm-applet) 無法執行- 解決方案
當由ubuntu 8.04升級到8.10(Intrepid)時,發現在面板上的NetworkManager applet不見了(NetworkManager applet is missing)
如果在Terminal執行nm-applet時,會出現下列的錯誤訊息



** (nm-applet:7559): WARNING **: applet_dbus_manager_start_service(): Could not acquire the

NetworkManagerUserSettings service as it is already taken. Return: 3


(nm-applet:7559): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
解決方式如下:

Fix nm-applet can't execute error

1. 修改/etc/dbus-1/system.d/NetworkManager.conf 和 /etc/dbus-1/system.d/nm-applet.conf
將下列紅色字,如果為deny,改allow
<policy context=default>
<allow own="org.freedesktop.NetworkManager"/>
<allow send_destination="org.freedesktop.NetworkManager"/>
<allow send_interface="org.freedesktop.NetworkManager"/>
</policy>

2. 重新啟動 dbus
sudo /etc/init.d/dbus restart
Fix nm-applet "No connection defined" error

3. 停止 NetworkManager
sudo /etc/init.d/NetworkManager stop

4. 刪除 /etc/network/interfaces 或是更名(rename)
sudo rm /etc/network/interfaces

5. 重新啟動 NetworkManager
sudo /etc/init.d/NetworkManager start


操作过程
nipa@ubuntu:~$ nm-applet

** (nm-applet:8055): WARNING **: <WARN> applet_dbus_manager_start_service(): Could not

acquire the NetworkManagerUserSettings service.
Message: 'Connection ":1.23" is not allowed to own the service

"org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file'


(nm-applet:8055):

GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
nipa@ubuntu:~$ sudo gedit

/etc/dbus-1/system.d/NetworkManager.conf
nipa@ubuntu:~$ sudo /etc/init.d/dbus restart
* Stopping System Tools

Backends system-tools-backends [ OK ]
* Stopping bluetooth

[ OK ]
* Stopping Hardware abstraction layer hald [ OK ]
* Stopping

Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Stopping system message bus dbus

[ OK ]
* Starting system message bus dbus
Encountered error 'Error in file /etc/dbus-1/system.d/nm-applet.conf, line 21, column 18: not well-formed (invalid

token)
' while parsing '/etc/dbus-1/system.d/nm-applet.conf'


[ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Starting

Hardware abstraction layer hald [ OK ]
* Starting bluetooth

[ OK ]
* Starting System Tools Backends system-tools-backends [ OK ]
nipa@ubuntu:~$ sudo gedit /etc/dbus-1/system.d/nm-applet.conf
nipa@ubuntu:~$ sudo /etc/init.d/dbus restart
*

Stopping System Tools Backends system-tools-backends [ OK ]
* Stopping bluetooth

[ OK ]
* Stopping Hardware abstraction layer hald [

OK ]
* Stopping Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Stopping system message

bus dbus [ OK ]
* Starting system message bus dbus


Encountered error 'Error in file /etc/dbus-1/system.d/nm-applet.conf, line 21, column 17: not

well-formed (invalid token)
' while parsing '/etc/dbus-1/system.d/nm-applet.conf'


[ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon

[ OK ]
* Starting Hardware abstraction layer hald [ OK ]
* Starting bluetooth

[ OK ]
* Starting System Tools Backends system-tools-backends

[ OK ]
nipa@ubuntu:~$ Fix nm-applet
bash: Fix:找不到命令
nipa@ubuntu:~$ sudo gedit /etc/dbus-

1/system.d/nm-applet.conf
sudo gedit /etc/network/interfaces
nipa@ubuntu:~$ sudo gedit /etc/network/interfaces
nipa@ubuntu:~$ sudo /etc/init.d/NetworkManager stop
* Stopping NetworkManager...

[ OK ]
nipa@ubuntu:~$ sudo /etc/init.d/NetworkManager start
* Starting NetworkManager...

[ OK ]
nipa@ubuntu:~$





查看文件
nm-applet.conf

<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"


"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">


<allow own="org.freedesktop.NetworkManagerUserSettings"/>

<allow

send_destination="org.freedesktop.NetworkManagerUserSettings"/>
<allow

send_interface="org.freedesktop.NetworkManagerSettings"/>

<!-- Only root can get secrets -->


<allow send_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
</policy>
<policy

at_console="true">
<allow own="org.freedesktop.NetworkManagerUserSettings"/>

<allow

send_destination="org.freedesktop.NetworkManagerUserSettings"/>
<allow

send_interface="org.freedesktop.NetworkManagerSettings"/>

<!-- Only root can get secrets -->


<deny_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
</policy>
<policy context="default">


<deny own="org.freedesktop.NetworkManagerUserSettings"/>

<allow

send_destination="org.freedesktop.NetworkManagerUserSettings"/>
<allow

send_interface="org.freedesktop.NetworkManagerSettings"/>
<!-- Only root can get secrets -->


<deny send_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
</policy>

<limit

name="max_replies_per_connection">512</limit>
</busconfig>






networkmanager.conf



<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"


"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">


<allow own="org.freedesktop.NetworkManager"/>
<allow

send_destination="org.freedesktop.NetworkManager"/>
<allow

send_interface="org.freedesktop.NetworkManager"/>

<allow own="org.freedesktop.NetworkManager.PPP"/>


<allow send_destination="org.freedesktop.NetworkManager.PPP"/>
<allow

send_interface="org.freedesktop.NetworkManager.PPP"/>
</policy>
<policy user="haldaemon">


<allow send_destination="org.freedesktop.NetworkManager"/>
<allow

send_interface="org.freedesktop.NetworkManager"/>
</policy>
<policy at_console="true">


<allow send_destination="org.freedesktop.NetworkManager"/>
<allow

send_interface="org.freedesktop.NetworkManager"/>
</policy>
<policy context="default">


<allow own="org.freedesktop.NetworkManager"/>
<allow

send_destination="org.freedesktop.NetworkManager"/>
<allow

send_interface="org.freedesktop.NetworkManager"/>

<deny own="org.freedesktop.NetworkManager.PPP"/>


<deny send_destination="org.freedesktop.NetworkManager.PPP"/>
<deny

send_interface="org.freedesktop.NetworkManager.PPP"/>
</policy>

<limit

name="max_replies_per_connection">512</limit>
</busconfig>



请各位大大看看那里有问题 谢谢了


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译