安装了 GParted 但它没有打开

Jyo*_*rma 7 gnome partitioning gparted 16.10

我在安装后尝试打开 GParted,因为它没有预装在 Ubuntu Gnome 16.10 中,但它只是要求输入 root 密码但没有打开。

然后我尝试从终端打开它显示了这个

jp@JP-PC:~$ sudo gparted
Created symlink /run/systemd/system/-.mount ? /dev/null.
Created symlink /run/systemd/system/home.mount ? /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount ? /dev/null.
Created symlink /run/systemd/system/run-user-121.mount ? /dev/null.
Created symlink /run/systemd/system/tmp.mount ? /dev/null.
No protocol specified

(gpartedbin:3426): Gtk-WARNING **: cannot open display: :0
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/home.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-121.mount.
Removed /run/systemd/system/tmp.mount.
jp@JP-PC:~$ 
Run Code Online (Sandbox Code Playgroud)

但它没有开始。我也尝试重新启动计算机。谁能告诉它有什么问题。谢谢你。

Riy*_*eed 9

问题出在 Ubuntu 17.10 中。通过运行以下命令解决了它:

xhost +local:
Run Code Online (Sandbox Code Playgroud)