Steps
1. Begin modifying sources.list file by running the following command:
sudo nano /etc/apt/sources.list
2. Find the following:
http://raspbian.raspberrypi.org/raspbian/
3. Replace with:
http://mirror.aarnet.edu.au/pub/raspbian/raspbian
4. Once you have finished modifying the file, it should look something like the text we have below:
deb http://mirror.aarnet.edu.au/pub/raspbian/raspbian stretch main contrib non-free rpi
# Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
5. Save the file by pressing Ctrl + X then Y and finally ENTER.
6. Now that we have updated the sources.list file we need to go ahead and run an update. This will update the local package list so that it will retrieve packages from the new repository:
sudo apt-get update
Credits