14.1什么情况呀?gedit不能用(不要用深度商店删除软件)
Tofloor
poster avatar
键盘机
deepin
2014-09-12 17:44
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
Reply Favorite View the author
All Replies
ArthurDeepin
deepin
2014-09-12 18:14
#1
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 View the author