在 Lubuntu 15.10 中尝试运行 sudo GUI 程序时出错

在 Lubuntu 15.10 中尝试运行 sudo GUI 程序时出错

每当我尝试从 LXTerminal 以 sudo 身份运行 GUI 程序时,都会收到此错误:

No protocol specified

** (aptik-gtk:2701): WARNING **: Could not open X display
No protocol specified
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

(aptik-gtk:2701): Gtk-WARNING **: cannot open display: :0.0

我知道 Mir 显示服务器不属于那里。Lubuntu 仅使用 x.org 显示服务器。我确认它没有安装。因此,一定有一些 /home 文件引用它,这是将 /home 数据从 Ubuntu 14.04 备份传输到我的 Lubuntu /home 的结果。我尝试卸载 x11、重新配置 x11、删除 ~/.config,但都不起作用。

相关内容