
Install deb software package via Ubuntu Software manager (GUI) Once installation is complete you will be able to go ahead and start using the software. Since I have the file in Downloads directory the command in my case will be the following: sudo apt install ~/Downloads/code_1.72.2-1665614327_b To install the software you will need to run “sudo apt install” followed by the path to the. Ubuntu comes with a utility called apt that allows to install software from both managed repositories and directly from. When installing software directly from a package instead of using official repositories it’s always good to ensure that the source of the package is legit and you can trust it. deb package downloaded from so feel free to download this or any other.

I will be installing Visual Studio Code editor from a. It’s possible to install deb software package either via CLI or via Ubuntu Software Manager and we will have a look at both options. This is different from the case when you download the source code and compile that source code for in order to have the software installed. Usually, you download deb package from the vendor and then install the software from that file without having to compile it. The sudo apt-get install -f command tries to fix this broken package by installing the missing dependency.Ubuntu and other Debian derivatives (for example, Linux Mint) use installable software packages with. 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.
