LFCS · Question #825
Which file should be edited to select the network locations from which Debian installation package files are loaded?
The correct answer is D. /etc/apt/sources.list. The /etc/apt/sources.list file is the primary configuration file used by Debian's APT package management system to define the network locations (repositories) from which installation package files are retrieved.
Question
Options
- A/etc/dpkg/dpkg.cfg
- B/etc/apt/apt.conf
- C/etc/apt/apt.conf.d
- D/etc/apt/sources.list
- E/etc/dpkg/dselect.cfg
How the community answered
(49 responses)- A6% (3)
- B2% (1)
- C4% (2)
- D88% (43)
Why each option
The `/etc/apt/sources.list` file is the primary configuration file used by Debian's APT package management system to define the network locations (repositories) from which installation package files are retrieved.
`/etc/dpkg/dpkg.cfg` is a configuration file for dpkg itself, defining options for how dpkg operates, not for package sources.
`/etc/apt/apt.conf` is the main configuration file for APT, but it typically holds general APT settings rather than the list of package sources.
`/etc/apt/apt.conf.d` is a directory containing supplementary configuration files for APT, which are loaded in alphabetical order, but the primary package source list is in `sources.list`.
The `/etc/apt/sources.list` file lists the APT repositories from which packages are downloaded and installed. Each line in this file typically specifies a repository URL, the distribution name, and components (e.g., main, restricted).
`/etc/dpkg/dselect.cfg` is a configuration file specifically for the `dselect` package management frontend, not for defining APT package sources.
Concept tested: Debian APT package repository configuration
Source: https://manpages.debian.org/sources.list.5
Topics
Community Discussion
No community discussion yet for this question.