Results 1 to 5 of 5
I am trying to edit the sources.list file to install
I am getting this error
debian:/home/sp# sudo gedit sources.list
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
...
- 05-13-2006 #1
cannot open sources.list
I am trying to edit the sources.list file to install
I am getting this error
debian:/home/sp# sudo gedit sources.list
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(gedit:6734): Gtk-WARNING **: cannot open display:
debian:/home/sp# apt-get install gedi
anyone know what this is about?
- 05-13-2006 #2
Not really sure but there is always the option of opening it from a command line editor. There are several to choose from. I use "joe" mostly but there's also Pico, Nano, Vi and others. Chances are you have Vi. As root:
Use the arrow keys to get around. Press the "insert" key before editing. To save and close pressCode:vi /etc/apt/sources.lst
...and Enter.Code:Esc [then] :x
For more on vi see here.
- 05-13-2006 #3
From the hash mark (#) in your prompt, it looks like you're calling that command as root. I'm guessing you opened a terminal as a regular user, then did su to change to root. That would explain the X server refusing to connect. To do X-related stuff with root privileges from a terminal, your best option is to use sudo as a regular user. Or if you prefer to switch to root, you can use sux instead of su (you'll have to apt-get install sux first, because it's not included).
But I'd go with Dapper Dan's suggestion of a good CLI editor. Nano comes with Ubuntu, and is plenty easy to use.Stand up and be counted as a Linux user!
- 05-13-2006 #4
got it
I got it to work. added my user to the visudo file. is this bad? not sure. I was getting the error that my user was not a memeber of the sudo group. I have been doing some updates trying to get kde working right with etch. so far so good.
- 05-13-2006 #5Linux Engineer
- Join Date
- Oct 2004
- Location
- Vancouver
- Posts
- 1,366
that's not bad at all, excellent tinkering in a minor way...keep reading them man pages and playing with all aspect of your system...its YOUR system
Operating System: GNU Emacs


Reply With Quote
