nerdexam
Linux_Foundation

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.

Submitted by naveen.iyer· Apr 18, 2026Operation of Running Systems

Question

Which file should be edited to select the network locations from which Debian installation package files are loaded?

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)
  • A
    6% (3)
  • B
    2% (1)
  • C
    4% (2)
  • D
    88% (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.

A/etc/dpkg/dpkg.cfg

`/etc/dpkg/dpkg.cfg` is a configuration file for dpkg itself, defining options for how dpkg operates, not for package sources.

B/etc/apt/apt.conf

`/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.

C/etc/apt/apt.conf.d

`/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`.

D/etc/apt/sources.listCorrect

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).

E/etc/dpkg/dselect.cfg

`/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

#apt#package management#repositories#sources.list

Community Discussion

No community discussion yet for this question.

Full LFCS Practice