Created
April 10, 2018 08:07
-
-
Save RedCarrottt/bdf2994b36d659fd5e86c63bdd22a5dd to your computer and use it in GitHub Desktop.
Change Ubuntu mirror server to kakao.
This file contains hidden or 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
#!/bin/sh | |
# Original code: https://gist.github.com/lesstif/8185f143ba7b8881e767900b1c8e98ad | |
SL=/etc/apt/sources.list | |
cp ${SL} ${SL}.org | |
## | |
sed -e 's/\(us.\)\?archive.ubuntu.com/mirror.kakao.com/g' -e 's/security.ubuntu.com/mirror.kakao.com/g' < ${SL}.org > ${SL} | |
## check | |
apt updateas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment