Skip to content

Instantly share code, notes, and snippets.

@seungwoonlee
Forked from lesstif/change-ubuntu-mirror.sh
Created April 22, 2018 12:20
Show Gist options
  • Save seungwoonlee/c14623245f32b18112331be8795fa16a to your computer and use it in GitHub Desktop.
Save seungwoonlee/c14623245f32b18112331be8795fa16a to your computer and use it in GitHub Desktop.
우분투의 apt 기본 미러를 다음 카카오로 변경
#!/bin/sh
SL=/etc/apt/sources.list
cp ${SL} ${SL}.org
##
sed -e 's/\(us.\)\?archive.ubuntu.com/ftp.daumkakao.com/g' -e 's/security.ubuntu.com/ftp.daumkakao.com/g' < ${SL}.org > ${SL}
## check
apt update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment