LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   etc/apt/sources.list errors when trying to edit (https://www.linuxquestions.org/questions/linux-desktop-74/etc-apt-sources-list-errors-when-trying-to-edit-500212/)

tparker 11-09-2006 10:01 PM

etc/apt/sources.list errors when trying to edit
 
I've searched google and forums and can't figure this out, so I'm asking.(Fair warning: I'm willing to learn and try things, but I'm very very new to Linux.)

I'm using Ubuntu 6.06 Dapper.

I am following the Ubuntu directions from this page (I had to edit the front of the page info because I haven't posted enough here yet to be allowed to enter a url):
debianadmin.com/install-libdvdcss-and-w32-video-codecs-in-debian-and-ubuntu.html[/url]
to try and add W32 codecs to my install (Ubuntu 6.06 Dapper amd64).

When I use the terminal and type:
sudo gedit etc/apt/sources.list
in order to add the repositories, it asks for and appears to accept my password, and it opens the file in gedit, but it also posts (in the terminal window) the message:

(gedit:13095): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
/home/(my name)/.esd_auth: File exists

The etc/apt/sources.list file opens in the gedit window, but there is nothing there. If I try and add the repositories that the website says to and save the file I get a yellow error bar across the top of the edit window that says:

Could not save the file /home/(my name)/etc/apt/sources.list.
Unexpected error: File not found

So I hit the cancel button, close down the edit window using the 'x' in the corner and tell it not to save (anything else gets the same yellow bar error as above) and am right back where I started.

Can anyone help me find what I am doing wrong and how to fix it?

j-ray 11-10-2006 04:57 AM

for security reasons you shouldnt use gui editors as root. better make the file writable as root, edit as user
j.

shaman66 11-10-2006 05:45 AM

lol, for security reasons I wouldnt let normal users edit things like list of sources.list and other VERY important files ;)

going back to subject.
I would suggest first change name or move the file /home/(my name)/.esd_auth and then check.
ifu run a command in You can always do
gksu gedit etc/apt/sources.list

what does it say?


All times are GMT -5. The time now is 07:38 PM.