Question 470
A Linux administrator faces this situation: A local .deb archive must be installed on an isolated Debian host that may lack dependencies. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Install the archive with dpkg -i and resolve any unmet dependencies through approved package sources. This corrects the case-specific failure. First verify: Inspect the archive metadata and currently installed dependency versions. Then demonstrate success: dpkg records the package configured and the required dependencies are satisfied.
Incorrect Answers
Use dpkg -S /path/to/file to search installed package ownership records. That would matter when a system file has changed and an operator wants to identify its owning installed Debian package. The relevant distinction in this case is: Install the archive with dpkg -i and resolve any unmet dependencies through approved package sources.
Run apt-get update before the planned apt-get install from configured repositories. That would matter when an administrator needs to install a Debian package by name but the local repository index is stale. It does not address this case's requirement: A local .deb archive must be installed on an isolated Debian host that may lack dependencies.
Use dpkg -L package-name to enumerate the installed package's file list. That would matter when a Debian binary package is installed but the operator needs to list the files shipped by that package. That separate mechanism does not verify the needed Linux administration outcome in this case.