LPIC-1 Linux Installation and Package Management Practice Question
A DevOps engineer is setting up an automated build pipeline for a Python application on a Debian system. The application must be packaged into a .deb for deployment. The engineer writes a Makefile that creates the package but the final 'dpkg -i' step fails due to unmet dependencies: the application requires python3-requests >= 2.0, but the repositories provide 1.0. The team has a local mirror with custom packages including python3-requests 2.0. The mirror is correctly listed in /etc/apt/sources.list. The engineer runs 'apt-get update' before building, but the dependency resolution still fails. What is the most likely cause?
⚠ Common exam trap
Test-takers frequently assume `dpkg -i` will automatically resolve dependencies from repositories, but LPIC-1 tests the distinction that `dpkg` is a low-level tool with no network or repository awareness, while `apt` handles dependency resolution from configured sources.
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
✓
The .deb package should be installed using 'apt install ./package.deb' instead of 'dpkg -i'.
`dpkg -i` does not resolve dependencies from repositories; it only installs the local .deb file and checks dependencies against the local dpkg database. Using `apt install ./package.deb` leverages APT's dependency resolution, which will fetch `python3-requests 2.0` from the local mirror after `apt-get update` has refreshed the package index. This ensures unmet dependencies are automatically satisfied from the configured sources.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The engineer must set the --force-depends option to skip dependency checks.
Why it's wrong here
That would bypass the check, but the application would still lack the library.
- ✓
The .deb package should be installed using 'apt install ./package.deb' instead of 'dpkg -i'.
Why this is correct
apt automatically resolves and installs dependencies from repositories.
- ✗
The 'apt-get update' command did not run successfully; the engineer should check the output.
Why it's wrong here
It is stated that it ran successfully.
- ✗
The python3-requests 2.0 package has not been correctly built or uploaded to the local mirror.
Why it's wrong here
If it were missing, apt-get update would still show it; the problem is dpkg doesn't use repository info.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.