In this article, we will have explained the necessary steps to install a deb file on Ubuntu. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Installing software on Ubuntu Linux involves using a package manager called APT (Advanced Package Tool). One of the common package formats that APT can install is the DEB (Debian) package format. In this guide, we will show you how to install a DEB file on Ubuntu using the APT package manager.
- Operating System with Ubuntu 22.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install Deb Files on Ubuntu
Before we begin, it’s important to note that DEB files are specific to the Debian and Ubuntu Linux distributions. If you are using a different Linux distribution, the process for installing DEB files may be different.
Step 1. Download the DEB File
The first step in installing a DEB file on Ubuntu is to download the DEB file to your local machine. You can download DEB files from a variety of sources, including the official Ubuntu repositories, third-party websites, and even from the command line using the
Once you have downloaded the DEB file, make sure that it is saved in a convenient location that is easy to access, such as your Downloads folder.
Step 2. Open a Terminal Window
The next step is to open a terminal window on your Ubuntu machine. To do this, click on the Dash icon in the top left corner of your screen and search for “Terminal”.
Step 3. Navigate to the DEB File Location
Once the terminal window is open, you will need to navigate to the location where you saved the DEB file. To do this, use the “
cd” command to change directories. For example, if the DEB file is saved in your Downloads folder, you can use the following command:
Step 4. Install the DEB File
Once you have navigated to the DEB file location, you can install the DEB file using the following command:
sudo dpkg -i deb_file_package.deb
deb_file_package.deb” with the actual name of the DEB file that you downloaded.
Note: The steps above assume that you have root privileges (i.e., you are logged in as the “
root” user or you have used the “
sudo” command to execute the commands with root privileges). If you do not have root privileges, you will need to use the “
sudo” command before each of the commands above.
This command will install the DEB file on your Ubuntu system. If the installation is successful, you should see a message indicating that the package has been installed.
Step 5. Resolve Dependencies
Sometimes, a DEB file may have dependencies on other packages that are not installed on your system. If this is the case, you will need to resolve these dependencies before you can use the package. To do this, use the following command:
sudo apt-get install -f
This command will install any missing dependencies and allow you to use the package that you just installed.
Step 6. Verify the Installation
Once the DEB file has been installed and all dependencies have been resolved, you can verify the installation by checking the version of the package that you installed. To do this, use the following command:
dpkg -l deb_file_package
deb_file_package” with the actual name of the DEB file that you installed. This command will display the version number of the package, as well as other information about the package.
In this guide, we have shown you how to install a DEB file on Ubuntu using the APT package manager. By following these steps, you can easily install DEB files on your Ubuntu system and resolve any dependencies that may be required.