Find the answer to your Linux question:
Results 1 to 3 of 3
How do I add sources to the sources list in Debian? I am somewhat confused on how to do this. The only file I can pull up is a read ...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    16

    Adding Sources

    How do I add sources to the sources list in Debian? I am somewhat confused on how to do this. The only file I can pull up is a read only file. I have tried to do it with the command line, but I get nowhere. I tried to do this also with the Synaptic Package Manager and I created a syntax error. Now all I get in the Synaptic Package Manager is the message "Ignoring Invalid Records in the Source .List File" when I click on Settings/Repositories.

    1. How do I add sources to the source list?
    2. How do I correct the Syntax Error?

    Appreciate any help, thanks

    Keith

  2. #2
    Banned
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    1,121
    Open a text editor (default for GNOME is gedit) and edit /etc/apt/sources.list

    Code:
    gedit /etc/apt/sources.list
    (as root)

    Next just add any repo you like.

    Here's my /etc/apt/sources.list :
    #####Base#####
    deb http://ftp.debian.nl/debian/ etch main contrib non-free
    deb-src http://ftp.debian.nl/debian/ etch main contrib non-free

    #####Updates#####
    deb http://security.debian.org/ etch/updates main
    deb-src http://security.debian.org/ etch/updates main

    #####Multimedia#####
    deb http://www.debian-multimedia.org etch main

    ######Tovid-Tovid/GUI#######
    #deb http://packages.kirya.net/debian/ stable main contrib non-free
    #deb-src http://packages.kirya.net/debian/ stable main contrib non-free
    deb http://packages.kirya.net/debian/ unstable main contrib non-free
    deb-src http://packages.kirya.net/debian/ unstable main contrib non-free
    Updating your sytem (and adding the new repos):
    Code:
     apt-get update && apt-get dist-upgrade

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    16

    Adding Sources

    Jens,
    Thank you for your advice. It worked. I was able to remove the syntax error and add sources.
    Much appreciated.
    Keith

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •