############# config ##################
#
# set base_path /var/spool/apt-mirror
set base_path /apt-mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
# bionic 18.04
deb http://kr.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://kr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://kr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
# focal 20.04
deb http://vcore.clouds.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://vcore.clouds.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://vcore.clouds.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
# jammy 22.04
deb http://mirror.kakao.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirror.kakao.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirror.kakao.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirror.kakao.com/ubuntu jammy-security main restricted universe multiverse
/etc/apache2/site-enable/000-default.comf *documentroot /var/www/repo
service apache2 restart
# repo-client 설정
/etc/apt/sources.list
: repo를 위에서 설정한 local-repo 로 설정
# 18.04
deb http://[local-repo-IP]/mirror/kr.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://[local-repo-IP]/mirror/kr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://[local-repo-IP]/mirror/kr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://[local-repo-IP]/mirror/security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
# 20.04
deb http://[local-repo-IP]/mirror/vcore.clouds.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://[local-repo-IP]/mirror/vcore.clouds.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://[local-repo-IP]/mirror/vcore.clouds.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://[local-repo-IP]/mirror/security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
# 22.04
deb http://[local-repo-IP]/mirror/mirror.kakao.com/ubuntu/ jammy main restricted universe multiverse
deb http://[local-repo-IP]/mirror/mirror.kakao.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://[local-repo-IP]/mirror/mirror.kakao.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://[local-repo-IP]/mirror/mirror.kakao.com/ubuntu jammy-security main restricted universe multiverse