由于 Ubuntu Gnome 16.10 中没有预装 GParted,因此我尝试在安装后打开它,但它只是要求输入 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:~$
但它没有启动。我也尝试过重启电脑。谁能告诉我问题出在哪里。谢谢。
答案1
Ubuntu 17.10 中存在此问题。通过运行以下命令解决了此问题:
xhost +local: