Services and User Management
An administrator installs a downloaded .deb file on an Ubuntu server with dpkg -i. The command fails with unmet dependency errors, and the package is left unconfigured. Which command BEST fetches the missing dependencies from the configured repositories and completes the installation?
Show the answer
Correct answerC. sudo apt install -f
apt install -f (--fix-broken) downloads the missing dependencies from the repositories and finishes configuring the package. dpkg --configure -a only configures already unpacked packages and does not fetch anything, so the missing dependencies stay unresolved.