LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-02-2006, 03:52 PM   #1
secret_force
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 03:58 PM.
 
Old 08-02-2006, 04:03 PM   #2
jeelliso
Member
 
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".

~Justin
 
Old 08-02-2006, 04:05 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
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, 04:05 PM   #4
Nylex
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 04:07 PM.
 
Old 08-02-2006, 05:28 PM   #5
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,138

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 05:34 PM.
 
  


Reply


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 04:56 AM
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 03:35 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 07:22 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 05:55 AM


All times are GMT -5. The time now is 11:28 PM.

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