9

While running

gksu gedit /etc/udev/rules.d/somefile.rules

I am getting this suggestion.

Command 'gksu' not found, did you mean:

  command 'gosu' from deb gosu
  command 'ksu' from deb heimdal-clients
  command 'ksu' from deb krb5-user

Try: sudo apt install <deb name>
Sakthivel A R
  • 413
  • 2
  • 5
  • 15
  • 1
    Related: [Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?](https://askubuntu.com/questions/961967/why-dont-gksu-gksudo-or-launching-a-graphical-application-with-sudo-work-with-w/961978#961978) – sudodus Nov 28 '19 at 07:41

1 Answers1

16

gksu has been deprecated.

It's been removed from Ubuntu 18.04, as well as Debian and other newer Linux distributions. If you do a web search with the phrase "Ubuntu man gksu", you will see there's no 18.04 version available. Here are alternatives:

Alternate[0]: use "-H"

sudo -H nautilus

Alternate[1]: Use "admin://"

gedit admin:///etc/udev/rules.d/somefile.rules

Alternate[2]: Use "pkexec"

pkexec gedit
K7AAY
  • 16,864
  • 9
  • 45
  • 77
Sakthivel A R
  • 413
  • 2
  • 5
  • 15