Services and User Management

A third-party repository is defined by a deb line in /etc/apt/sources.list.d/vendor.list on an Ubuntu server. The administrator wants apt to stop using this repository but keep the definition for later use. Which action accomplishes this?

Show the answer

Correct answerC. Comment out the deb line, then run apt update

Commenting out the deb line stops apt from reading that source, and apt update refreshes the package index without it. Deleting the signing key is tempting, but it only causes signature errors for the repository, and the repository stays configured.