PDA

View Full Version : [SOLVED] Editing sources.list permissions problem 11.10



Rotblatt
June 11th, 2012, 08:52 PM
Hey all,
I've been trying to edit my sources.list file in /ect/apt.
I try to use sudo gedit; however, terminal spits back a strange error set that seems related to permissions problems since it will still not let me save the new text file.

Any help on this would be great!
Thanks!

BTW here is the error from terminal:

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

drs305
June 11th, 2012, 08:54 PM
Those messages are an annoyance but shouldn't prevent you from using gedit as root to edit your file:


gksu gedit /etc/apt/sources.list &

"gksu" is preferred over "sudo" for graphical apps.
http://www.psychocats.net/ubuntu/graphicalsudo

Rotblatt
June 11th, 2012, 09:01 PM
Yup that worked!
Why was the & necessary, if you don't mind me asking.

drs305
June 11th, 2012, 09:07 PM
Yup that worked!
Why was the & necessary, if you don't mind me asking.

It's not necessary, but it frees up the terminal window so you can run other commands if you wish even while gedit is open.

The SOLVED tag is accessed via Thread Tools to the top right of the first post when you feel satisfied with this thread.

Cavsfan
June 11th, 2012, 09:12 PM
gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", Drs305, weren't those errors indicative of the problem with using sudo instead of gksu on a graphical application?
Just wondering myself.

drs305
June 11th, 2012, 09:20 PM
gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(gksu:2414): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", Drs305, weren't those errors indicative of the problem with using sudo instead of gksu on a graphical application?
Just wondering myself.

Not sure. I don't get the error with either sudo or gksu, to be honest. But I may have tweaked my system - see below. I know I have gotten that error using nautilus on some releases, and I never use "sudo" with graphical apps.

The pixmaps error is a known bug, and the messages can be eliminated by installing gtk2-engines-pixbuf.

Cavsfan
June 11th, 2012, 09:31 PM
Not sure. I don't get the error with either sudo or gksu, to be honest. But I may have tweaked my system - see below. I know I have gotten that error using nautilus on some releases, and I never use "sudo" with graphical apps.

The pixmaps error is a known bug, and the messages can be eliminated by installing gtk2-engines-pixbuf.

Good to know! I installed gtk2-engines-pixbuf just to be safe. For some reason the 32 bit version was already installed (gtk2-engines-pixbuf:i386).
Thanks :)