The sudo apt-get install -f command tries to fix this broken package by installing the missing dependency. dpkg is the backend to commands like apt-get and aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic. 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. 1551 Packages are manually installed via the dpkg command (Debian Package Management System). Its interface is similar to synaptic, but it works from a pendrive (it doesn't need installation). How does it work It lets you download updates and new programs (with dependencies) to your flash drive. 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. 24 Answers Sorted by: 137 Check out Keryx it's an offline repository manager. 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 If you want to install deb packages in the command line, you can use either the apt command or the dpkg command. Once the download is finished it calls dpkg to install all those files, satisfying all the dependencies. it then loaded cache for a while, asked for my password, loaded some more cache, said it was running then says 'failed to install file. when I tried to do a simple double click on it, asked me if I wanted to install it, I replied 'install'. When you install a package using apt, it first creates a list of all the dependencies and downloads it from the repository. I am a Linux noob so that could stand for 'Decent Enough Broadband'. When you use apt to install a package, under the hood it uses dpkg.
0 Comments
Leave a Reply. |