Which configuration file is often edited to add additional repositories in Ubuntu?

Prepare for the LPIC-2 Certification Test with our study tools, including flashcards and multiple choice questions with hints and explanations. Get ready to pass your exam!

The configuration file that is commonly edited to add additional repositories in Ubuntu is /etc/apt/sources.list. This file contains a list of repository URLs that APT (the Advanced Package Tool) uses to retrieve updates and install packages.

When you want to add a new software repository, you typically append the repository's information to this file in a specific format. Each line in the sources.list file specifies a different repository, including details such as the type of repository (like binary or source) and its location.

Additionally, it is important to know that while the APT configuration can also be managed through other files in the /etc/apt/ directory hierarchy, such as those found in the sources.list.d directory, the primary file utilized for adding and managing repositories remains /etc/apt/sources.list.

The other options mentioned are either not standard for adding repositories (like /etc/apt/repositories.list, which does not typically exist in standard configurations) or serve different purposes, such as /etc/apt/apt.conf, which is used for APT configuration parameters, and /etc/apt/sources.repos, which is not a recognized file in the context of managing APT repositories in Ubuntu.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy