Results 1 to 4 of 4

Thread: sources.list

  1. #1
    Junior Member registered user
    Join Date
    May 2003
    Posts
    19

    sources.list

    hi iam running into a problem. when i run apt-get update, it gets stuck in 99%. the line is ftp2.debian.de:80
    i uncommented all the lines in my sources.list, which had the above link, and it seems ok. BUT i can not get millions of packages due to that. could someone tell me some links, so i could substitute them? here is my /etc/apt/sources.list

    # Security updates for "stable"
    deb http://security.debian.org stable/updates main contrib non-free
    deb http://security.debian.org testing/updates main contrib non-free

    # Stable
    #deb http://ftp2.de.debian.org/pub/debian stable main contrib non-free
    #deb http://ftp2.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free

    # Sources
    #deb-src http://ftp2.de.debian.org/pub/debian stable main contrib non-free
    #deb-src http://ftp2.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free

    # Testing
    #deb http://ftp2.de.debian.org/pub/debian testing main contrib non-free
    #deb http://ftp2.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free

    # Sources
    #deb-src http://ftp2.de.debian.org/pub/debian testing main contrib non-free
    #deb-src http://ftp2.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free

    # Unstable
    #deb http://ftp2.de.debian.org/debian unstable main contrib non-free
    #deb http://ftp2.de.debian.org/debian-non-US unstable/non-US main contrib non-free

    # Sources
    #deb-src http://ftp2.de.debian.org/debian unstable main contrib non-free
    #deb-src http://ftp2.de.debian.org/debian-non-US unstable/non-US main contrib non-free

    # Experimental
    #deb http://ftp2.de.debian.org/debian ../project/experimental main contrib non-free
    #deb-src http://ftp2.de.debian.org/debian ../project/experimental main contrib non-free

    # Mozilla
    # deb http://non-us.debian.org/~kitame/mozilla ./
    # deb-src http://non-us.debian.org/~kitame/mozilla ./

    # GNOME 2.0
    # deb http://www.gnome.de/debian/ ./

    # KDE 3
    # deb http://ktown.kde.org/~nolden/kde stable main
    # deb-src http://ktown.kde.org/~nolden/kde stable main
    # We get packages from testing/unstable for now

    # cdbakeoven
    # deb http://coyote.asoc.euitt.upm.es/mud/debian/ ./

    # XFree 4.2/4.3
    # deb http://people.debian.org/~branden/packages sid/i386/
    # deb-src http://people.debian.org/~branden/packages sid/source/
    # deb http://www.penguinppc.org/~daniels/sid/i386 ./
    # deb-src http://www.penguinppc.org/~daniels/sid/source ./

    # Java
    deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free
    deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free
    deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free
    deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free
    # deb http://people.debian.org/~sgybas/jdk13

    # LyX & others (now in debian/unstable)
    # deb ftp://ntama.uni-mainz.de/pub/debian unofficial/
    # deb-src ftp://ntama.uni-mainz.de/pub/debian unofficial/

    # Evolution
    #deb ftp://ftp.ximian.com/pub/debian stable main
    #deb-src ftp://ftp.ximian.com/pub/debian stable main

    # Blades Repository (pppoeconf & co)
    # deb http://people.debian.org/~blade/testing ./
    # deb-src http://people.debian.org/~blade/testing ./

    # Wine CVS snapshot
    # deb http://people.debian.org/~andreas/debian wine main
    # deb-src http://people.debian.org/~andreas/debian wine main

    #mplayer
    deb ftp://ftp.nerim.net/debian-marillat/ unstable main

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    Well - I don't use the debian-installer, and don't know how it works.
    But I know how you may change lines, which match a certain pattern.

    First we copy the file to have a backup:

    Code:
    cp sources.list sources.list.sik
    then we call sed, an not-interactive editor, which rolls commands on files:

    Code:
    sed 's/^#deb/deb/g' sources.list.sik > sources.list
    The command is enclosed in "'".
    it consists of 4 parts, separated by slashes:
    The command, 's', meaning substitue
    The first parameter, - what shall be substituted
    The second parameter - by what shall param 1 be replaced?
    The scope of this command: 'g', globally replacement (not only once).

    The first parameter needs some explanation:
    '^' means: at the beginning of a line.
    '#deb' means '#deb', together it means 'Substitute the String '#deb' if found at the beginning of the line.
    It will be replaced by 'deb' without the leading '#'.

    Sed is of cause a stupid automate, and doesn't understand anything of the file, so it would replace as well '#debil' or '#deborah' but not '# deb-' because there is a space before the 'deb' and not '#Deb' because of the uppercase 'D'.

    The command will be performed with the backup as input, and the output is written to the file 'sources.lst'.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202
    try this, they are from mepis live-cd

    # MEPIS
    # deb file:/mnt/auto/cdrom/ unstable main
    deb http://deb.mepis.org/debian/ unstable contrib

    # Primary
    deb ftp://ftp.us.debian.org/debian/ stable main contrib non-free
    # deb-src ftp://ftp.us.debian.org/debian/ stable main contrib non-free
    deb ftp://ftp.us.debian.org/debian/ testing main contrib non-free
    # deb-src ftp://ftp.us.debian.org/debian/ testing main contrib non-free
    deb ftp://ftp.us.debian.org/debian/ unstable main contrib non-free
    # deb-src ftp://ftp.us.debian.org/debian/ unstable main contrib non-free

    # non-US
    deb ftp://ftp.ie.debian.org/debian-non-US/ stable/non-US main contrib non-free
    # deb-src ftp://ftp.ie.debian.org/debian-non-US/ stable/non-US main contrib non-free
    deb ftp://ftp.ie.debian.org/debian-non-US/ testing/non-US main contrib non-free
    # deb-src ftp://ftp.ie.debian.org/debian-non-US/ testing/non-US main contrib non-free
    deb ftp://ftp.ie.debian.org/debian-non-US/ unstable/non-US main contrib non-free
    # deb-src ftp://ftp.ie.debian.org/debian-non-US/ unstable/non-US main contrib non-free

    # Experimental
    # deb http://ftp.us.debian.org/debian/ ../project/experimental main contrib non-free
    # deb-src http://ftp.us.debian.org/debian/ ../project/experimental main contrib non-free

    # Security updates
    deb http://security.debian.org/ stable/updates main contrib non-free
    deb http://security.debian.org/ testing/updates main contrib non-free

    # java
    deb ftp://metalab.unc.edu/pub/linux/deve...wn.org/debian/ unstable main non-free

    deb ftp://ftp.nerim.net/debian-marillat/ unstable main

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You could run "netselect" or "netselect-apt" to find mirrors closer to you. I usually use the german mirrors as they are fast enough, but switched to finnish ones a while back to even out the traffic. Not much I suppose but the thought must count

Similar Threads

  1. knoppix sources.list repository incomplete list.
    By vdesibabu in forum Customising & Remastering
    Replies: 0
    Last Post: 01-05-2005, 05:47 PM
  2. Apt Sources list
    By Timo in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 09-28-2004, 07:50 AM
  3. sources.list
    By patiscool in forum General Support
    Replies: 1
    Last Post: 06-27-2004, 12:42 AM
  4. sources.list
    By A. Jorge Garcia in forum General Support
    Replies: 5
    Last Post: 05-28-2004, 12:46 AM
  5. Recommended sources.list
    By rozen in forum General Support
    Replies: 2
    Last Post: 12-07-2003, 08:21 PM

Posting Permissions

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


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$49.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$308.00



Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server picture

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server

$349.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99