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.
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 useyakuake
) and doEdit as appropriate, save (ctrl+x, choose yes), then don't forget to
If you need to use
gedit
then you can allow root, and any local user, to create windows on your display by doingxhost +local:
before issuing thegksudo
command.