Skip to content

Instantly share code, notes, and snippets.

@RedCarrottt
Created April 10, 2018 08:07
Show Gist options
  • Save RedCarrottt/bdf2994b36d659fd5e86c63bdd22a5dd to your computer and use it in GitHub Desktop.
Save RedCarrottt/bdf2994b36d659fd5e86c63bdd22a5dd to your computer and use it in GitHub Desktop.
Change Ubuntu mirror server to kakao.
#!/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