Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-09-2006, 11:01 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 24

Rep: Reputation: 0
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):[/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?
Old 11-10-2006, 05:57 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
for security reasons you shouldnt use gui editors as root. better make the file writable as root, edit as user
Old 11-10-2006, 06:45 AM   #3
Registered: Jul 2004
Location: Poland, Bydgoszcz
Distribution: KUbuntu 5.10, Slack 10.2
Posts: 40

Rep: Reputation: 15
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?


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
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
How can I edit sources.list elementadiobam Ubuntu 9 09-20-2006 10:57 AM
Edit My Apt Sources List carlosinfl Debian 19 08-26-2005 07:13 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM
help with /etc/apt/sources.list please Lleb_KCir Linux - Software 0 10-05-2004 02:15 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:00 PM.

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
Open Source Consulting | Domain Registration