포스트

Ubuntu apt source list

/etc/apt/sources.list 파일을 수정하여 서버를 국내 서버로 설정하면, 더 빠르게 apt update, apt upgrade가 가능하다.

1
2
3
4
5
6
7
8
# See sources.list(5) manpage for more information
# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool.

# 네이버 미러
deb http://mirror.navercorp.com/ubuntu bionic main restricted universe multiverse
deb http://mirror.navercorp.com/ubuntu bionic-updates main restricted universe multiverse
deb http://mirror.navercorp.com/ubuntu bionic-security main restricted universe multiverse
deb http://mirror.navercorp.com/ubuntu bionic-backports main restricted universe multiverse

우분투 버전에 따라 위 내용의 “bionic”을 모두 아래처럼 변경한다.

  • 24.04: noble
  • 22.04: jammy
  • 20.04: focal
  • 18.04: bionic
  • 16.04: xenial (동작 미확인)
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.

"Linux" 카테고리의 게시물