/etc/apt/sources.list 지역 미러로 변경 및 기타 정보.

이 작업은 보통 GUI 로 하게 된다.
그런데, GUI 로 하면, 모든 서버 주소가 바뀌지는 않고, security 관련 주소는 원래 그대로 남겨지게 되는 듯 하다. archive.ubuntu.com 또는, kr.archive.ubuntu.com. 이런 식으로.
왜 이런 건지는 모르겠다.

그냥 그렇게 써야 하나보다.. 하고 지금껏 써왔는데, 서버, 즉 CLI 환경에서 이걸 바꾸려다 보니 vim 을 사용했었고, 그 결과로 모든 서버 주소가 다 바뀌게 되었다.

다시 말해, 이렇게.

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ftp.harukasan.org/ubuntu bionic main restricted
# deb-src http://ftp.harukasan.org/ubuntu bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.harukasan.org/ubuntu bionic-updates main restricted
# deb-src http://ftp.harukasan.org/ubuntu bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ftp.harukasan.org/ubuntu bionic universe
# deb-src http://ftp.harukasan.org/ubuntu bionic universe
deb http://ftp.harukasan.org/ubuntu bionic-updates universe
# deb-src http://ftp.harukasan.org/ubuntu bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ftp.harukasan.org/ubuntu bionic multiverse
# deb-src http://ftp.harukasan.org/ubuntu bionic multiverse
deb http://ftp.harukasan.org/ubuntu bionic-updates multiverse
# deb-src http://ftp.harukasan.org/ubuntu bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ftp.harukasan.org/ubuntu bionic-backports main restricted universe multiverse
# deb-src http://ftp.harukasan.org/ubuntu bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://ftp.harukasan.org/ubuntu bionic-security main restricted
# deb-src http://ftp.harukasan.org/ubuntu bionic-security main restricted
deb http://ftp.harukasan.org/ubuntu bionic-security universe
# deb-src http://ftp.harukasan.org/ubuntu bionic-security universe
deb http://ftp.harukasan.org/ubuntu bionic-security multiverse
# deb-src http://ftp.harukasan.org/ubuntu bionic-security multiverse

이래도 전혀 문제가 없다. harukasan 서버가 security 디렉토리까지 모두 미러링을 하고 있기에, 전부 바꿔줘도 된다.

저걸 다시 깔끔하게 정리하면 이렇게 된다.

# Bionic main
deb http://ftp.harukasan.org/ubuntu bionic main restricted universe multiverse

# Major bug fix updates
deb http://ftp.harukasan.org/ubuntu bionic-updates main restricted universe multiverse

# Backports (최신 소프트웨어)
deb http://ftp.harukasan.org/ubuntu bionic-backports main restricted universe multiverse

# 보안관련
deb http://ftp.harukasan.org/ubuntu bionic-security main restricted universe multiverse

배포판과, update, backports, security 등으로 크게 구분되고, 거기에서 소프트웨어 별로 main, restricted, universe, multiverse 등으로 또 나뉜다.

대충 내용을 정리하면 이렇다.

  • Main – 캐노니컬社에서 관리.
  • Universe – 일반 사용자들이 관리.
  • Multiverse – 저작권 문제가 있을 수 있는 소프트웨어들.
  • Restricted – 독점소프트웨어, 드라이버 류.

아울러, 나는 경험(?)에 의해서 Harukasan 을 선택했는데(10년간 다음도 써보고, 카이스트도 써보고 했으나, 최근엔 여기가 가장 빠른 듯?), 이걸 좀더 똑똑하게 선택해주는 프로그램들도 있다. apt-mirror-updater, apt-select 등등.
그 어느 것도 써보진 않아서 잘 작동하는지는 모르겠다.

우분투 미러 현황을 볼 수 있는 페이지도 있다.
최근(20.02.19 현재) Harukasan 이 좀 이상하여 확인해보니 언제 업데이트 됐는지 확인이 안된다고 한다. 지금 시점에서는 Kakao 서버가 가장 좋은 듯.

** 여담으로..
일본은 총 8개, 18 Gbps, 한국은 총 6개 6 Gbps. 여기서도 꽤 큰 차이가 나네. 물론 인구 대비로 하면 비슷하다 할 수도 있겠지만. 나중에 Yamagata 대학 서버도 한번 써봐야겠다. (무려 속도가 10Gbps?? 정말일까?)
반면 중국은 13개, 11 Gbps. 인구로만 보면 말도 못하게 부족하다 할 수 있겠다.

Author: 아무도안

안녕하세요. 글 남겨주셔서 고맙습니다.