Just a quick note on how to change the package mirror in Ubuntu or Debian in one command:
sed -i 's%http://.*/ubuntu/%http://ftp.halifax.rwth-aachen.de/ubuntu/%g' /etc/apt/sources.list
A list of mirrors can be found for Ubuntu here and Debian here.
Enjoy