Announcement

Collapse
No announcement yet.

sources.list Problems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sources.list Problems

    Hi, i'm new to Kubuntu (from about 2 days ago), so i'm sorry if this is a stupid question, but i can't find my answer by searching the forum.

    I'm having trouble with sources.list.

    When I try to add something to it i get:

    The document could not be saved, as it was not possible to write to file:///etc/apt/sources.list

    Check that you have write access to this file or that enough disk space is available.
    Can anyone give a little help? Thanks in advance.

    #2
    Re: sources.list Problems

    sure.

    it looks like you're trying to update a system file without having the privileges to do so.
    regular users on linux can only change files that belong to them (or...sort of...but then it gets complicated).
    /etc/apt/sources.list is a system file.
    changes here will affect all the users on the system.
    so, changes here will have to be carried out by the administration user, that is: root.
    you, as a regular user, may temporarily acquire those privileges through sudo.

    so, if you want to edit your file by hand, then try

    with a gui text editor (for example kate):
    a) hit alt f2
    b) enter kdesu kate /etc/apt/sources.list
    c) enter your password
    d) work normally

    with a text editor from a terminal (for example, nano):
    a) start up, for example, konsole
    b) enter sudo nano /etc/apt/sources.list
    c) enter your password
    d) work normally

    otherwise, do the changes by working from the package manager gui (i.e.: adept, synaptics, ...),
    which should by default be started through the sudo mechanism.

    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: sources.list Problems

      Thanks for the tips.

      I knew I had to get root access, but i wasn't sure how to go about it.

      Thanks.

      Comment

      Working...
      X