nerdexam
CompTIA

LX0-103 · Question #12

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. /etc/apt/sources.list is the primary configuration file in Debian-based systems that defines the network locations (repositories) from which APT retrieves packages.

Linux Installation and Package Management

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

(52 responses)
  • C
    2% (1)
  • D
    94% (49)
  • E
    4% (2)

Why each option

/etc/apt/sources.list is the primary configuration file in Debian-based systems that defines the network locations (repositories) from which APT retrieves packages.

A/etc/dpkg/dpkg.cfg

/etc/dpkg/dpkg.cfg is the main configuration file for the dpkg low-level package tool itself, controlling options like verbosity and paths, not repository locations.

B/etc/apt/apt.conf

/etc/apt/apt.conf stores global APT configuration options such as proxy settings and acquire methods, but not the list of repository sources.

C/etc/apt/apt.conf.d

/etc/apt/apt.conf.d is a directory containing snippet files that extend APT configuration, not the file that defines repository sources.

D/etc/apt/sources.listCorrect

/etc/apt/sources.list contains lines specifying repository types (deb/deb-src), URIs, distribution codenames, and component names that tell APT exactly where to download package index files and packages. Editing this file allows administrators to add, remove, or change the remote mirrors and repositories used during installations and upgrades.

E/etc/dpkg/dselect.cfg

/etc/dpkg/dselect.cfg is the configuration file for the dselect package management front-end and has no role in defining network package sources.

Concept tested: Debian APT repository sources list configuration

Source: https://manpages.debian.org/stable/apt/sources.list.5.en.html

Topics

#apt#sources.list#Debian#package repositories

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice