netselect-apt downloads a list of all mirrors from the Debian website. Then checks which server is nearer to your server. And finally it creates a sources.list file in your current directory.
In this guide I will show you how to install and use netselect-apt to select the fastest mirror for you.
1. Install netselect-apt:
apt-get install netselect-apt
2. How to use netselect-apt:
netselect-apt squeeze
After few seconds you will get the answer:
The fastest server seems to be:
http://ftp.lug.ro/debian/
Writing sources.list.
Done.
3. Enable the sources.list that you just created:
Just copy the sources.list
netselect-apt created to your /etc/apt/
folder and run apt-get update