相关疑难解决方法(0)

为什么 gksu/gksudo 或使用 sudo 启动图形应用程序不能与 Wayland 一起使用?

我安装了 Ubuntu 17.10。现在我遇到了gksu以下问题:

$ gksu -dg synaptic
No ask_pass set, using default!
xauth: /tmp/libgksu-HgUjgQ/.Xauthority
STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: root
cmd[7]: --
cmd[8]: synaptic
buffer: -GNOME_SUDO_PASS-
brute force GNOME_SUDO_PASS ended...
Yeah, we're in...
Unable to init server: Could not connect: Connection refused
(synaptic:8767): Gtk-WARNING **: cannot open display: :1
xauth: /tmp/libgksu-HgUjgQ/.Xauthority
xauth_env: (null)
dir: /tmp/libgksu-HgUjgQ
Run Code Online (Sandbox Code Playgroud)

如果我不使用-g,密码对话框将被禁用。所以看起来像为 root 创建 tty 的问题。

有什么建议吗?

root wayland gksu

47
推荐指数
4
解决办法
4万
查看次数

标签 统计

gksu ×1

root ×1

wayland ×1