我有 Trisquel 7 GNU/Linux 发行版,带有 GNOME 3.8.4。
我发现无法在 Nautilus 中创建文件夹,也无法将文件拖放到桌面,除了其他选项之外。我觉得这很奇怪,因为我习惯于使用只有 root 权限的实时 USB,而且我仍然不了解 Linux 中的用户系统。每当我尝试执行任何操作时,Nautilus 都不会做出反应;这里有一些我试过的代码……
常规入场费:$ NAUTILUS
xvlaze@linux0:~$ nautilus
** (nautilus:4627): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
须藤鹦鹉螺
[同一条消息]
苏
root@linux0:/home/xvlaze# nautilus Unable to initialize DBus connection: Connection is closed (nautilus:4672): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_export: assertion 'G_IS_DBUS_CONNECTION (connection)' failed Error creating proxy: Connection is closed (g-io-error-quark, 18) Error creating proxy: Connection is closed (g-io-error-quark, 18) Error creating proxy: Connection is closed (g-io-error-quark, 18) Error creating proxy: Connection is closed (g-io-error-quark, 18)
(nautilus:4672): libunity-CRITICAL **: unity-launcher.vala:154: Unable to connect to session bus: Connection is closed
(nautilus:4672): libunity-CRITICAL **: unity-launcher.vala:154: Unable to connect to session bus: Connection is closed
(nautilus:4672): dconf-WARNING **: failed to commit changes to dconf: Connection is closed
(nautilus:4672): dconf-WARNING **: failed to commit changes to dconf: Connection is closed No DBus connection available
我以前从未遇到过类似的事情,即使在使用其他人的 Linux 计算机时也是如此。有人遇到过类似的事情吗?
答案1
这听起来像是您当前安装的 Nautilus 存在问题,好像它在升级或重新安装期间的某个地方被损坏了。
我将尝试从头开始重新安装 Nautilus:
killall nautilus
apt-get purge nautilus
apt-get update
apt-get install nautilus
编辑:
问题是 root 既没有 Xscreen 会话,也没有 dbus 连接。不同的发行版对此的处理方式不同,例如在我的 Kubuntu 上,上面的命令开箱即用。这些情况下的标准解决方案是使用gksu
而不是sudo
,因为gksudo
的设计正是针对这两个问题。
或者,您可以启用 root 访问您的屏幕 ( xhosts +
) 并将 root 添加到 dbus 组,
gpasswd -a root dbus
如果这还不够,你将不得不研究波尔基特对于 Gnome 来说,我从来没有做过这样的事情,而且我也无法提供任何指导。