Skip to content

Instantly share code, notes, and snippets.

@fo40225
Last active March 22, 2020 07:09
Show Gist options
  • Save fo40225/795ad6919d3cf9f3d72331326c739314 to your computer and use it in GitHub Desktop.
Save fo40225/795ad6919d3cf9f3d72331326c739314 to your computer and use it in GitHub Desktop.
台灣apt mirror
# 顯示目前mirror
cat /etc/apt/sources.list | grep main | awk '{ print $2 }' | cut -d'/' -f3 | sed -n '3P'
# 國網中心
sudo sed -i 's/archive.ubuntu.com/tw.archive.ubuntu.com/g' /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment