GParted-无法打开显示

GParted-无法打开显示

我刚刚安装了 gparted,因为我有一个 135 GB 的闪存驱动器,我想用它来启动不同的操作系统。

我安装gparted并从 Dash 打开它后,系统提示我输入密码,输入密码后,窗口关闭,光标变成加载符号,我等待了一下,光标恢复正常,就是这样。

我用 安装了它sudo apt-get install gparted

输出gksudo gparted

Error copying '/home/amolith/.Xauthority' to '/tmp/libgksu-k9KFpI': No such file or directory

输出gparted-pkexec

Created symlink /run/systemd/system/-.mount → /dev/null.
Created symlink /run/systemd/system/boot.mount → /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount → /dev/null.
Created symlink /run/systemd/system/run-user-120.mount → /dev/null.
Created symlink /run/systemd/system/snap-core-2381.mount → /dev/null.


Created symlink /run/systemd/system/tmp.mount → /dev/null.
No protocol specified

(gpartedbin:6347): Gtk-WARNING **: cannot open display: :0
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/boot.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-120.mount.
Removed /run/systemd/system/snap-core-2381.mount.
Removed /run/systemd/system/tmp.mount.

任何帮助将不胜感激。

答案1

您的问题似乎与 wayland 有关,运行:

xhost +local:

它让本地用户连接到显示器,然后运行 ​​gparted:

gparted-pkexec

它应该可以解决问题。

来源

相关内容