Skip to content

Instantly share code, notes, and snippets.

@franzwong
Created December 21, 2015 08:37
Show Gist options
  • Save franzwong/badd30a17c22ada7fee4 to your computer and use it in GitHub Desktop.
Save franzwong/badd30a17c22ada7fee4 to your computer and use it in GitHub Desktop.
Change apt mirror
# switch apt mirror
sudo sed -i 's/http:\/\/archive\.ubuntu\.com/http:\/\/ftp\.cuhk\.edu\.hk\/pub\/Linux/g' /etc/apt/sources.list
sudo sed -i 's/http:\/\/security\.ubuntu\.com/http:\/\/ftp\.cuhk\.edu\.hk\/pub\/Linux/g' /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment