Ubuntu: GParted - Cannot open display [duplicate]



Question:

I just installed gparted because I have a 135 GB flash drive that I want to use for bootables for different OSs.

After I installed gparted and opened it from the Dash, I got the prompt for my password, entered it, the window closed, cursor turned to the loading symbol, I waited, the cursor went back to normal, that was it.

I installed it with sudo apt-get install gparted.

The output from gksudo gparted is

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

The output from gparted-pkexec is

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.  

Any help would be greatly appreciated.


Solution:1

Your problem seems related to the wayland, run:

xhost +local:  

it lets local users to connect to the display, then run gparted:

gparted-pkexec  

it should solve the problem.

source


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »