LPIC-1 Linux Installation and Package Management Practice Question
Exhibit
Refer to the exhibit.
$ apt-cache policy apache2
apache2:
Installed: (none)
Candidate: 2.4.41-4ubuntu3.5
Version table:
2.4.41-4ubuntu3.5 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
2.4.41-4ubuntu3.4 500
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
2.4.41-4ubuntu3 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 PackagesAn administrator needs to install apache2 version 2.4.41-4ubuntu3.4 from the security repository to ensure the latest security patches. Based on the exhibit, which command should they use?
⚠ Common exam trap
Many exam-takers confuse the `-t` option (which sets a target release) with the version pinning syntax, or they mistakenly use a space instead of an equals sign when specifying a version, leading to an invalid command.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
apt-get install apache2=2.4.41-4ubuntu3.4
The `apt-get install apache2=2.4.41-4ubuntu3.4` command explicitly pins the package to the exact version number, ensuring that the specified version from the security repository is installed. This syntax is the standard way to install a specific package version in APT, overriding the default candidate version.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
apt-get install apache2/focal-security
Why it's wrong here
This syntax is incorrect for specifying a version. apt does not support a '/' to denote repository; it would be interpreted as a package name including a slash.
- ✗
apt-get install -t focal-security apache2
Why it's wrong here
The '-t' option sets the target release, but it will install the candidate version from that release, not necessarily the specific version 2.4.41-4ubuntu3.4. The candidate might be a different version in that release.
- ✗
apt-get install apache2 2.4.41-4ubuntu3.4
Why it's wrong here
This command attempts to install two packages: 'apache2' and '2.4.41-4ubuntu3.4', which is not a valid package name. The correct syntax requires an equals sign between the package name and version.
- ✓
apt-get install apache2=2.4.41-4ubuntu3.4
Why this is correct
This command correctly specifies the exact version using the '=' syntax, which apt will install from the appropriate repository (security in this case) because the version is present there.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.