ArthurDeepin
deepin
2014-09-12 18:14 error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server
还好能搜到解决办法,终端中输入 gnomesu gedit 或xdg-su -c gedit 键入密码,就能对打开的文件修改保存了。
http://swsw4321.blog.163.com/blog/stati ... 102737166/
Reply Like 0 View the author


中文 
刚刚14.1全新安装,一上来update,upgrade没有可用更新;
之后删除不必要的程序(14版没问题)修改hosts出错了
请求软件包"yelp"在当前系统软件包列表中不存在。
@_@
~$ sudo gedit /etc/hosts
No protocol specified
** (gedit:3038): WARNING **: Could not open X display
No protocol specified
error: XDG_RUNTIME_DIR not set in the environment.
(gedit:3038): Gtk-WARNING **: cannot open display: :0
@_@
重启后
~$ sudo gedit /etc/hosts
sudo:gedit: command not found