Skip to content

Instantly share code, notes, and snippets.

@ktaragorn
Created September 2, 2015 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktaragorn/81496cb4f8ff4bfddb00 to your computer and use it in GitHub Desktop.
Save ktaragorn/81496cb4f8ff4bfddb00 to your computer and use it in GitHub Desktop.
Replace ubuntu sources with mirrors:// sources - make apt faster
#http://askubuntu.com/a/9035/92812
sudo sed -i 's/http\:\/\/security.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list
sudo sed -i 's/http\:\/\/extras.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list
sudo sed -i 's/http\:\/\/archive.ubuntu.com\/ubuntu/mirror\:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment