CompTIA Linux+ XK0-006 (V8) Practice Question

During a routine maintenance window, an administrator runs sudo apt update on an Ubuntu 22.04 LTS server and receives the following output:

Err: http://archive.ubuntu.com/ubuntu focal InRelease
  404  Not Found [IP: 185.125.190.39 80]
Reading package lists... Done
E: The repository 'http://archive.ubuntu.com/ubuntu focal InRelease' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

A quick check of /etc/lsb-release returns:

DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
DISTRIB_CODENAME=jammy

Which of the following actions will MOST likely restore normal update functionality while maintaining security best practices?

  • Edit the APT source files to replace every instance of focal with jammy, then run sudo apt update again.

  • Run sudo apt clean and retry the command to rebuild the local APT cache.

  • Add the repository's public key with apt-key adv --recv-keys to re-enable package verification.

  • Change the protocol from http to https for each entry in /etc/apt/sources.list.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot