环境是ubuntu 13.10
使用sudo gedit时候会出现如下错误提示
(gedit:5172): IBUS-WARNING **: The owner of /home/gao/.config/ibus/bus is not root!
(gedit:5172): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
使用gksu gedit时候没有哦错误提示却不能输入中文~
怎么破??
ubuntu使用gedit问题
答案:3 悬赏:20
解决时间 2021-04-28 15:42
- 提问者网友:醉人眸
- 2021-04-27 18:07
最佳答案
- 二级知识专家网友:气场征服一切
- 2021-04-27 19:27
修改/etc/sudoers这个文件,内容如下:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
把系统中所有的权限全部授予给root或者你的用户,只需要修改一下用户名就可以了。
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
把系统中所有的权限全部授予给root或者你的用户,只需要修改一下用户名就可以了。
全部回答
- 1楼网友:气场征服一切
- 2021-04-27 19:55
warning提示的是ibus输入法没有获取root权限,你只获得了gedit的Root权限。
解决办法我也不会,没遇见过这种问题。如果可以重装系统试试。
或者去掉sudo,临时改用gksu
- 2楼网友:摧毁过往
- 2021-04-27 19:39
命令下执行
export lang=en
export language=en
先看看英文报什么错
你已经是root了,不需要加sudo ,直接执行gedit看行不
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息