Debian – How to Setup Debian Mirrors After Installation

debian

Suppose I install debian,and my Internet network
comes down.
Install works OK,but at the time to setup the apt mirror
from list give error because network Internet is down.
I continue to install without mirror(apt/sources.list contain
only cdrom entry)
Internet work..how to setup the debian mirror after installation?
I know how to edit sources.list with vi,but I want the menu with
mirror list selection.

Best Answer

You just want some mirror or the closest/fastest mirror. If it's the latter, then you could just install netselect-apt and run it. I just ran to see which are the fastest form my geographical location and it said -

[$] sudo netselect-apt testing
........
........
    The fastest 10 servers seem to be:

        http://mirrors.ispros.com.bd/debian/
        http://ftp.sg.debian.org/debian/
        http://mirrors.apu.edu.my/debian/
        http://ftp.iinet.net.au/debian/debian/
        http://debian.mirror.cambrium.nl/debian/
        http://mirror.sax.uk.as61049.net/debian/
        http://ftp.uk.debian.org/debian/
        http://mirror.vorboss.net/debian/
        http://mirror.1000mbps.com/debian/
        http://ftp.antik.sk/debian/

    Of the hosts tested we choose the fastest valid for HTTP:
            http://mirrors.ispros.com.bd/debian/

    Writing sources.list.
    sources.list exists, moving to sources.list.1484862805
    Done.

[$] cat sources.list.1484862805

     1  # Debian packages for testing
     2  deb http://debian.ec.as6453.net/debian/ testing main contrib
     3  # Uncomment the deb-src line if you want 'apt-get source'
     4  # to work with most packages.
     5  # deb-src http://debian.ec.as6453.net/debian/ testing main contrib
     6  
     7  # Security updates for stable
     8  # deb http://security.debian.org/ stable/updates main contrib

Hope you find it useful.

Related Question