Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-02-2006, 02:52 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 28

Rep: Reputation: Disabled
command "gedit /etc/apt/sources.list" not working

I want to change my sources.list however this happens when I type in the terminal
ernst@ernst-desktop:~$ sudo gedit /etc/apt/sources.list
sudo: gedit: command not found

Any idea?

I use kubuntu 6.06

Last edited by secret_force; 08-02-2006 at 02:58 PM.
Old 08-02-2006, 03:03 PM   #2
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
sudo by itself will not run anything that requires the X server. Try "gksudo gedit /etc/apt/sources.list".

Old 08-02-2006, 03:05 PM   #3
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,308
Blog Entries: 8

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
gedit is a GNOME application, and kubuntu doesn't come with GNOME by default. You can install gedit if you want, or you can use kwrite (a KDE editor), or you can learn how to use vi (a popular but somewhat arcane console based text editor).

Of these options, learning to use vi may be the best in the long run. Vi isn't TOO unfriendly once you get used to it, and it's available even when booted up to the most minimal of emergency text console modes.
Old 08-02-2006, 03:05 PM   #4
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Do you actually have gedit installed? It's the editor for GNOME and Kubuntu has KDE installed, so you may not have it. Edit: there are other editors you can use: Kate (which comes with KDE), Emacs, nano/pico to name a few.

Last edited by Nylex; 08-02-2006 at 03:07 PM.
Old 08-02-2006, 04:28 PM   #5
Senior Member
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
"kdesu kate"

is what you want

You shouldn't get in the habit of sudo-ing graphical applications in kde. gnome can usually handle it.
use kdesu for everything off - command-line.

And you should use kate in kde instead of gedit.

BTW, it's "gksu" in gnome, not "gksudo".

Last edited by oskar; 08-02-2006 at 04:34 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Dynamic MMap ran out of room" error when adding new apt source list hasanito Debian 25 05-27-2013 03:56 AM
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 02:35 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration