
The sudo apt-get install -f command tries to fix this broken package by installing the missing dependency. Use dpkg and apt-get command line tools as. When dpkg installs a package and a package dependency is not satisfied, it leaves the package in an "unconfigured" state and that package is considered broken. Installing deb package on Ubuntu/Debian Install gdebi tool and then open and install the. Why use sudo apt-get install -f after sudo dpkg -i /path/to/deb/file (as mentioned in method 1)?įix attempt to correct a system with broken dependencies in place. All these methods will fail to satisfy the software dependency if the dependencies required by the deb is not present in the package index.

Note: APT maintains the package index which is a database ( /var/cache/apt/*.bin) of available packages available in repo defined in /etc/apt/sources.list file and in the /etc/apt/ directory. deb file using it ( Right-click -> Open with).

Once the download is finished it calls dpkg to install all those files, satisfying all the dependencies. When you install a package using apt, it first creates a list of all the dependencies and downloads it from the repository.

When you use apt to install a package, under the hood it uses dpkg.
