Ubuntu12.04 命令gedit出错:Could not connect to session bus (

http://blog.sina.com.cn/s/blog_6c288ff50101q79x.html

 

gedit命令出现以下错误的解决办法:

 

root@olhho-ubuntu:/home/olhho/opt/linux-2.6.30.9# gedit /home/olhho/opt/linux-2.6.30.9/arch/arm/tools/mach-types

** (gedit:11083): WARNING **: 连接已关闭

(gedit:11083): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


** (gedit:11083): WARNING **: Could not connect to session bus

 

因为:
su :只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径
 
su - :不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径
 
解决方法:

使用sudo gedit 或者su -后再gedit就不会又错了

 

posted on 2014-08-27 21:38  Neal.Xu  阅读(1173)  评论(0编辑  收藏  举报

导航