【发布时间】:2014-12-11 13:34:32
【问题描述】:
我尝试在 ubuntu-server 14.04 上执行以下行:
$ sudo gedit /usr/local/svn/passwd-team
我得到这个错误:
error: XDG_RUNTIME_DIR not set in the environment.
(gedit: 11805): Gtk-WARNING **: can not open display:
我在 Google 上寻求帮助,发现我必须写:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
然后我收到以下消息:
=== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authenticating is needed to run '/usr/bin/env' as the super user
Authenticating as: student,,, (student)
Password:
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
=== AUTHENTICATING COMPLETE ===
error: XDG_RUNTIME_DIR not set in the environment.
7
(gedit: 11807): Gtk-WARNING **: can not open display:
现在呢?我只想编辑 passwd-team 文件。请指导我。 非常感谢, 奥里安。
编辑: 我用 nano 编辑了那个文件,但错误仍然存在。
【问题讨论】:
标签: gedit ubuntu-server