cat /etc/apt/sources.list로 apt 소스 확인
이 단계에서는 시스템이 소프트웨어 패키지를 어디에서 가져오는지 살펴봅니다. 이전 랩에서 sudo apt update 및 sudo apt install htop을 사용했을 때, apt는 소프트웨어를 다운로드할 서버를 알아야 했습니다. 이 정보는 구성 파일에 저장됩니다.
apt의 소스를 나열하는 기본 파일은 /etc/apt/sources.list입니다. cat 명령을 다시 사용하여 내용을 볼 수 있습니다.
터미널에 다음 명령을 입력하고 Enter 키를 누르십시오.
cat /etc/apt/sources.list
deb 또는 deb-src로 시작하는 줄이 표시됩니다. 이 줄은 apt가 패키지를 찾는 저장소 (서버) 를 지정합니다.
## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
## newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted
## deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted
### Major bug fix updates produced after the final release of the
### distribution.
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted
## deb-src http://archive.ubuntu.com/ubuntu/ jammy-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 Canonical except for security updates. The
### responsibility for security updates from this repository rests entirely
### with the community.
deb http://archive.ubuntu.com/ubuntu/ jammy universe
## deb-src http://archive.ubuntu.com/ubuntu/ jammy universe
... (output may vary)
각 deb 줄은 일반적으로 다음 형식을 따릅니다.
deb [options] uri distribution [component1] [component2] [...]
deb: 바이너리 패키지 저장소를 나타냅니다.
uri: 저장소의 주소 (예: http://archive.ubuntu.com/ubuntu/).
distribution: 배포판 코드명 (예: jammy).
components: 소프트웨어 범주 (예: main, restricted, universe, multiverse).
#로 시작하는 줄은 주석이며 apt에서 무시됩니다.
기본 소스에서 사용할 수 없는 소프트웨어를 설치하기 위해 타사 저장소를 추가해야 하는 경우 sources.list를 이해하는 것이 중요합니다.
이 단계를 완료하려면 **계속 (Continue)**을 클릭하십시오.