deb package it should be installed into the current system. deb packages can be provided via different ways like a central repository, file server, USB, web page, etc. deb packages in order to install new software. The sudo apt-get install -f command tries to fix this broken package by installing the missing dependency.Linux distributions like Debian, Ubuntu, Mint, Kali, etc. 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. 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). For both, after executing this command, it will automatically download its dependencies.įirst installing gdebi and then opening your. With old apt-get versions you must first move your deb file to 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |