2

I have a battery power issue that I'm trying to resolve. One proposed solution involves adding some boot arguments and then removing the battery, but I'm running into trouble on the first step. To add a boot argument, I'm running

gksudo gedit etc/default/grub

However, I get this response:

Error copying '/home/username/.Xauthority' to /tmp/libgksu-0n0AJS': No such file or directory

New to Ubuntu and not an advanced user.

Zanna
  • 72,312
Cruiser13
  • 145

1 Answers1

3

You've hit an unfortunate snag, see eg https://askubuntu.com/a/961975/29073. The problem is probably you're using Wayland, and the default permissions aren't set for you to open up a GUI window from the commandline.

I'd skip the GUI method, open a terminal, eg gnome-terminal (I use kubuntu and actually use yakuake) and do

sudo nano /etc/default/grub

Edit as appropriate, save (ctrl+x, choose yes), then don't forget to

sudo update-grub

If you need to use gedit then you can allow root, and any local user, to create windows on your display by doing xhost +local: before issuing the gksudo command.

pbhj
  • 3,364