LPIC-1 Linux Installation and Package Management Practice Question
Which file defines the APT software repositories used by a Debian-based system?
⚠ Common exam trap
Test-takers frequently confuse `/etc/apt/sources.list` with `/etc/apt/sources.list.d/`, thinking the directory is the primary definition file, but the exam expects the traditional main file as the correct answer.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
/etc/apt/sources.list
`/etc/apt/sources.list` is the primary configuration file that defines the APT software repositories (e.g., Debian mirrors, Ubuntu archives) used by a Debian-based system. APT reads this file to fetch package indexes and install packages from the specified URIs, distributions, and components.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
/etc/apt/preferences
Why it's wrong here
This file controls package pinning, not repository sources.
- ✗
/etc/apt/sources.list.d/
Why it's wrong here
This directory contains additional repository files, but the primary file is sources.list.
- ✓
/etc/apt/sources.list
Why this is correct
This is the main repository definition file.
- ✗
/etc/apt/apt.conf
Why it's wrong here
This file configures APT options, not repositories.
Go deeper
Related to this question
About these practice questions
One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.