6

I heard about nautilus-gksu and would like to install it. Unfortunately, when I try, I get this:

glemi@XPS:~$ sudo apt-get install nautilus-gksu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nautilus-gksu

How and where can I get this package?

Glemi
  • 203

4 Answers4

5

nautilus-gksu don't work anymore for a long time since version 12.04 of Ubuntu.

In replace for this use "Nautilus Admin" extension where is available in the official Ubuntu repositories:

sudo apt-get install nautilus-admin

What it do?

Runs Nautilus As Root for any folder and for files open as root with gedit

How to use?

Inside Nautilus, Right-click on any Nautilus file/folder and then Open as Administrator/Edit as Administrator

Maxwel Leite
  • 2,424
4

Apparently nautilus-gksu has not been in the Ubuntu repositories since 12.04.

I got the below from: http://www.upubuntu.com/2012/09/open-files-and-folders-as-root-from.html

sudo apt-add-repository ppa:upubuntu-com/ppa
sudo apt-get update
sudo apt-get install nautilus-gksu

Then restart nautilus with this command:

nautilus -q

I didn't try this myself, and don't know if there's a better repository to add than upubuntu; it's also supposed to be available from the Linux Mint repositories from my quick Google search. If you Google for alternates, I would recommend limiting the results to the last year, to avoid obsolete references.

1

In Ubuntu 18.04 you cannot use nautilus-gksu anymore.

Alternative way to use a gksu command is to alias it as follows:

function __gksufn() {
  "$1" admin://"$2"
}

export alias gksu=__gksufn

In this way you can open files as gksu gedit /path/to/your/file.txt

0

Check your internet connection. If you are behind a proxy server, configure APT from /etc/apt/apt.conf to use the proxy.

Then, run sudo apt-get update to update the sources.

This should fix your problem.