Which of the following directories contains default repositories for APT?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The directory that contains the default repositories for APT is indeed /etc/apt/sources.list. This file serves a critical role in managing package sources for Debian-based systems, including Ubuntu. Inside this file, system administrators specify the locations (repositories) from which APT should retrieve packages and updates.

When you use the APT package management commands to install or update software, the system references this file to know where to look for the necessary packages. This can include official repositories, third-party repositories, and more. Additionally, users can add their own repository entries directly into this file or into separate files within the /etc/apt/sources.list.d directory to keep things organized.

The other directories mentioned do not serve this purpose. The /usr/local/etc/apt directory is not standard for APT configurations, /etc/repo/sources.list does not exist by default in the APT ecosystem, and /var/apt/sources.list is also not a proper APT configuration directory. Thus, the correct configuration for default APT repositories is clearly found in /etc/apt/sources.list.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy