Speed up updates and upgrades by selecting a mirror with the lowest latency.
- Gets list of Ubuntu mirrors
- Tests TCP latency to each mirror
- Prints rank, round trip time, status, and bandwidth of the 5 fastest mirrors
- Generates new
sources.list
file with user chosen mirror
- Python HTML parser, BeautifulSoup
####Install BeautifulSoup
Python 2
sudo apt-get install python-bf4
Python 3
sudo apt-get install python3-bf4
From inside the directory, run:
./apt-select.py
####Update apt
After the new sources.list
file is generated, use the update script to safely copy and replace your current file:
./update.sh