Last active
March 22, 2020 07:09
-
-
Save fo40225/795ad6919d3cf9f3d72331326c739314 to your computer and use it in GitHub Desktop.
台灣apt mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 顯示目前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